示例#1
0
 /// <summary>
 /// 生成数据文件发送
 /// </summary>
 /// <param name="nowDateTime"></param>
 protected void UpdateData()
 {
     try
     {
         DataList.DataHandler DH = new DataList.DataHandler();
     #if DEBUG
         DH.SaveABi_Po();
         DH.SaveABi_Gr("", "", 0);
         DH.SaveABi_Vendor();
         DH.UpdateAbi_Invoice();
         DH.SaveYB_Invoice_Report_Swap();
     #else
         DH.SaveABi_Po();
         DH.SaveABi_Gr("", "", -1);
         DH.SaveABi_Vendor();
         DH.UpdateAbi_Invoice();
         DH.SaveYB_Invoice_Report_Swap();
     #endif
     }
     catch (Exception error)
     {
         utils.WriteErrorLog(error.Message);
     }
 }
示例#2
0
        /// <summary>
        /// 生成数据文件发送
        /// </summary>
        /// <param name="nowDateTime"></param>
        protected void UpdateData()
        {
            try
            {
                DataList.DataHandler DH = new DataList.DataHandler();
            #if DEBUG
                bool bSkip = true;

                if (bSkip)
                    return;
                //DH.SaveABi_Po();
                DH.SaveABi_Gr();
                //DH.SaveABi_Vendor();
                //DH.UpdateAbi_Invoice();
                //DH.SaveYB_Invoice_Report_Swap();
            #else
                DH.SaveABi_Po();
                DH.SaveABi_Gr();
                DH.SaveABi_Vendor();
                DH.UpdateAbi_Invoice();
                DH.SaveYB_Invoice_Report_Swap();
            #endif
            }
            catch (Exception error)
            {
                utils.WriteErrorLog(error.Message);
            }
        }