public static string CRM07AJAXPOPSession(string PageTimeStamp, string RootNo, string TransDate, string STAcceptDate, string PocTransNo, string UID ) { BCO.CRMCommon CRMComm = new BCO.CRMCommon(); CRM_CRM071 CRMJOBPage = new CRM_CRM071(); string SessionIdName = "POP_QueryDisNo_" + PageTimeStamp; CRMJOBPage.Session[SessionIdName] = null; ParameterList.Clear(); ParameterList.Add(CRMComm.GetValueSetParameter(RootNo, "string", false)); ParameterList.Add(CRMComm.GetValueSetParameter(TransDate, "string", false)); ParameterList.Add(CRMComm.GetValueSetParameter(STAcceptDate, "string", false)); ParameterList.Add(CRMComm.GetValueSetParameter("", "string", false)); //0代表未逾期客訂,1代表是逾期客訂 ParameterList.Add(CRMComm.GetValueSetParameter(PocTransNo, "string", false));//擷轉序號起 ParameterList.Add(CRMComm.GetValueSetParameter(PocTransNo, "string", false));//擷轉序號迄 ParameterList.Add(UID); CRMJOBPage.Session[SessionIdName] = ParameterList; return "OK"; }
public static string SendJobMessage(string TransDate, string STAcceptDate, string RootNo, string UID, string PageTimeStampAndUID ) { JobParameter[] DBParameter = new JobParameter[5]; DBParameter[0].ParameterName = "訂單擷轉日"; DBParameter[0].ParameterValue = TransDate; DBParameter[1].ParameterName = "進貨日"; DBParameter[1].ParameterValue = STAcceptDate; DBParameter[2].ParameterName = "群分類"; DBParameter[2].ParameterValue = RootNo; DBParameter[3].ParameterName = "使用者"; DBParameter[3].ParameterValue = UID; DBParameter[4].ParameterName = "PageTimeStamp_使用者"; DBParameter[4].ParameterValue = PageTimeStampAndUID; string JobCode = "CRM07_1"; string ProcessLogFile = ""; //this.GenerReportConfigXML CRM_CRM071 CRMJOBPage = new CRM_CRM071(); CRMJOBPage.GenerJobConfigXML("CRM", "CRM071.aspx", JobCode, DBParameter, JobOutputFormat.XML, ref ProcessLogFile ); CRMJOBPage.Dispose(); return ProcessLogFile; }