Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 3
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);
     }
 }
Ejemplo n.º 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);
     }
 }