Beispiel #1
0
        /// <summary>
        /// PO申报发送响应
        /// </summary>
        /// <param name="context"></param>
        private void PODeclareResponse(System.Web.HttpContext context)
        {
            string     id         = context.Request["ID"];
            string     json       = context.Request["json"];
            POJsonInfo POJsonInfo = Newtonsoft.Json.JsonConvert.DeserializeObject <POJsonInfo>(json);

            //ErrorLogs("json: " + json);
            //ErrorLogs("formId: " + header.formId);
            POJsonInfo.POId       = id;
            POJsonInfo.contractNo = PurchaseOrderHelper.UP_GetNewRecordNo(4, "D", DateTime.Now.ToString("yyMMdd"));

            PurchaseOrderHelper.SavePOcustomsDeclaration(POJsonInfo);


            //if (!PurchaseOrderHelper.SavePOcustomsDeclaration(header))
            //{
            //    this.message = "{\"success\":\"NO\",\"MSG\":\"参数获取失败\"}";
            //}
        }
 public static void SavePOcustomsDeclaration(POJsonInfo POJsonInfo)
 {
     new PurchaseOrderDao().SavePOcustomsDeclaration(POJsonInfo);
 }