Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
 public void SaveYB_Invoice_Report_SwapTest()
 {
     DataHandler target = new DataHandler(); // TODO: Initialize to an appropriate value
     target.SaveYB_Invoice_Report_Swap();
     //Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
Exemplo n.º 3
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);
            }
        }