예제 #1
0
 private void btnBack_Click(object sender, EventArgs e)
 {
     WaitCursor.Set();
     try
     {
         BillMasterForm billMasterForm = new BillMasterForm(billType);
         billMasterForm.Show();
         this.Close();
     }
     catch (Exception ex)
     {
         WaitCursor.Restore();
         MessageBox.Show(ex.Message);
     }
 }
예제 #2
0
 private void ReadMasterBill(string billType)
 {
     try
     {
         WaitCursor.Set();
         if (SystemCache.ConnetionType == "USB连接")
         {
             new XMLBillDal().ReadBill();
             if (SystemCache.MasterTable == null)
             {
                 MessageBox.Show("没有需操作的数据!!");
                 return;
             }
         }
         BillMasterForm from = new BillMasterForm(billType);
         from.Show();
         this.Visible = false;
     }
     catch (Exception ex)
     {
         WaitCursor.Restore();
         MessageBox.Show("获取数据出错!" + ex.Message);
     }
 }
예제 #3
0
파일: MainForm.cs 프로젝트: uwitec/wms_rfid
 private void ReadMasterBill(string billType)
 {
     try
     {
         WaitCursor.Set();
         if (SystemCache.ConnetionType == "USB����")
         {
             new XMLBillDal().ReadBill();
             if (SystemCache.MasterTable == null)
             {
                 MessageBox.Show("û�������������!!");
                 return;
             }
         }
         BillMasterForm from = new BillMasterForm(billType);
         from.Show();
         this.Visible = false;
     }
     catch (Exception ex)
     {
         WaitCursor.Restore();
         MessageBox.Show("��ȡ���ݳ���!" + ex.Message);
     }
 }
예제 #4
0
 private void btnBack_Click(object sender, EventArgs e)
 {
     WaitCursor.Set();
     try
     {
         BillMasterForm billMasterForm = new BillMasterForm(billType);
         billMasterForm.Show();
         this.Close();
     }
     catch (Exception ex)
     {
         WaitCursor.Restore();
         MessageBox.Show(ex.Message);
     }
 }