Exemple #1
0
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(strBefore_orderId))
            {
                List <SQLObj> listSql = new List <SQLObj>();
                UpdateMaintainInfo(listSql, strBefore_orderId, "0");
                DBHelper.BatchExeSQLMultiByTrans("更新前置单据导入状态", listSql);
            }
            UCPartsReceiptImport import = new UCPartsReceiptImport();
            DialogResult         result = import.ShowDialog();

            if (result == DialogResult.OK)
            {
                strBefore_orderId = import.strOldId;
                BindSetmentData(import.strOldId);
                BindMData(import.strOlddetailId.Substring(0, import.strOlddetailId.Length - 1));
                List <SQLObj> listSql = new List <SQLObj>();
                UpdateMaintainInfo(listSql, strBefore_orderId, "1");
                DBHelper.BatchExeSQLMultiByTrans("更新前置单据导入状态", listSql);
            }
        }
 private void toolStripMenuItem1_Click(object sender, EventArgs e)
 {
     try
     {
         if (!string.IsNullOrEmpty(strBefore_orderId))
         {
             List<SQLObj> listSql = new List<SQLObj>();
             UpdateMaintainInfo(listSql, strBefore_orderId, "0");
             DBHelper.BatchExeSQLMultiByTrans("更新前置单据导入状态", listSql);
         }
         UCPartsReceiptImport import = new UCPartsReceiptImport();
         DialogResult result = import.ShowDialog();
         if (result == DialogResult.OK)
         {
             strBefore_orderId = import.strOldId;
             BindSetmentData(import.strOldId);
             BindMData(import.strOlddetailId.Substring(0, import.strOlddetailId.Length - 1));
             List<SQLObj> listSql = new List<SQLObj>();
             UpdateMaintainInfo(listSql, strBefore_orderId, "1");
             DBHelper.BatchExeSQLMultiByTrans("更新前置单据导入状态", listSql);
         }
     }
     catch (Exception ex)
     {
         HXCPcClient.GlobalStaticObj.GlobalLogService.WriteLog(ex);
     }
 }