Example #1
0
 private void form_ConfirmClick(DateTime dateTime, String shopId, CreateAllReportSelectForm form)
 {
     try
     {
         if (CommonGlobalUtil.EngineUnconnectioned(this))
         {
             return;
         }
         this.dateTime             = dateTime;
         createAllReportParaShopId = shopId;
         this.form = form;
         CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.DoUpdate);
         cb.BeginInvoke(null, null); ShowProgressForm();
     }
     catch (Exception ex)
     {
         CommonGlobalUtil.ShowError(ex);
     }
 }
Example #2
0
        private void BaseButton_resetReport_Click(object sender, EventArgs e)
        {
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                CreateAllReportSelectForm form = new CreateAllReportSelectForm("重结报表", "开始日期:", this.dateTimePicker_Start.Value, "正在重新结算中……");
                form.ConfirmClick += form_ConfirmClick;
                form.ShowDialog();
            }
            catch (Exception ee)
            {
                CommonGlobalUtil.ShowError(ee);
            }
            finally
            {
                CommonGlobalUtil.UnLockPage(this);
            }
        }