Methods for handling structure table functions

Source: Internet
Author: User

 //Bulk Add         PublicJsonresult Pladd (stringCountstringR_time,stringR_SB,stringR_FL,stringKSRQ,stringJSRQ,stringSSRQ) {            stringTbsql ="SELECT * from Sys_rpt_list WHERE tcategory="+ R_time +"and isreport="+ R_SB +"and pcategory="+R_FL; DataTable TB= Dbhelperyw.query (Tbsql). tables[0]; //Delete account DataDelete (SSRQ, KSRQ, JSRQ); //perform the accounting data generation processExecuteproc ("proc_tz_forward_report_2nd", Ssrq, KSRQ, JSRQ); intc =0; stringR =""; Try            {                foreach(DataRow IteminchTB. Rows) {//get report structure data                    stringJGTB = item["Structfile"]. ToString ();//JGTB50010//Get Report Data                    stringDATATB = item["datafile"]. ToString ();//TB50010//Instantiate report structure, data processing, method parameter matchingStatisticsofbusinessunit Statisticsofbusinessunit =NewStatisticsofbusinessunit (JGTB, DATATB, Ksrq, JSRQ, SSRQ,false); //overlay data that needs to be importedc + =statisticsofbusinessunit.exportlocal (); }                //working with totals, subtotals in a report//Executeproc ("Proc_tz_forward_update2", Ssrq, Ksrq, JSRQ);                stringTbname = Dbhelperyw.query (tbsql). tables[0]. rows[0]["datafile"]. ToString ().                Trim (); if(Tbname = ="TB50010") {Executeproc ("proc_tz_forward_update", Ssrq, KSRQ, JSRQ); }                if(Tbname = ="TB5006") {Executeproc ("Proc_tz_forward_update2", Ssrq, KSRQ, JSRQ); } R="[{' Success ': ' Symbiosis has become"+ Count +"Report, Success"+ C +"Zhang, failed"+ (int. Parse (count)-C) +"Zhang! '}]"; }            Catch(Exception ex) {R="[{' Susess ': ' Program exception"+ ex. Message +"'}]"; }            returnJson (R, Jsonrequestbehavior.allowget); }

Methods for handling structure table functions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.