private void Operation(OutputInfo info)
 {
     try
     {
         int       status = info.DontInludeOutput ? 0 : -1;
         DataTable dt     = LisTmCorrespondingBll.GetLisTmCorrespondingByStatus(status, info.BeginDate, info.EndDate);
         bool      isSucc = false;
         if (ConfigHelper.IsQianmai())
         {
             isSucc = OutPutToCsv(dt, info);
         }
         else
         {
             isSucc = JinyuOutputToCsv(dt, info);
         }
         if (isSucc)
         {
             WriteToResult("导出成功");
             LisTmCorrespondingBll.UpdateStatus(dt);
             WriteToResult("更改状态成功");
         }
         WriteToResult("导出完毕");
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            string tm = TxtLisTm.Text.Trim();

            if (!string.IsNullOrEmpty(tm))
            {
                if (chkHadUsed.Checked)
                {
                    //判断条码是否存在
                    if (LisTmCorrespondingBll.TmHadUsed(tm))
                    {
                        MessageBox.Show("外部条码已经使用,不能再次对应");
                        return;
                    }
                }
                QmLisTm.Info          = tm;
                QmLisTm.AssignedValue = true;
                QmLisTm.IncludeBlood  = chkBlood.Checked ? 0 : 1;
                this.Close();
            }
        }