示例#1
0
文件: StockIn.cs 项目: SoftSuite/ABB
 private void btnNew_Click(object sender, EventArgs e)
 {
     if (!FlowObj.InsertData(Appz.CurrentUserData.UserID, Appz.CurrentUserData.Warehouse))
         Appz.OpenErrorDialog(FlowObj.ErrorMessage);
     else
     {
         frmStockInEdt = new StockInEdit(FlowObj.LOID);
         frmStockInEdt.ShowDialog();
         SearchData();
     }
 }
示例#2
0
文件: Main.cs 项目: SoftSuite/ABB
 private void btnStockIn_Click(object sender, EventArgs e)
 {
     StockInShopFlow FlowObj = new StockInShopFlow();
     if (!FlowObj.InsertData(Appz.CurrentUserData.UserID, Appz.CurrentUserData.Warehouse))
         Appz.OpenErrorDialog(FlowObj.ErrorMessage);
     else
     {
         frmStockInEdit = new ABBClient.Transaction.StockInEdit(FlowObj.LOID);
         frmStockInEdit.MdiParent = this;
         frmStockInEdit.Show();
         frmStockInEdit.Focus();
     }
 }
示例#3
0
文件: StockIn.cs 项目: SoftSuite/ABB
 private void grvStockIn_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         if (e.ColumnIndex == indexCHECK)
         {
             if (this.grvStockIn[indexSTATUSNAME, e.RowIndex].Value.ToString() == Constz.Requisition.Status.Waiting.Name)
             {
                 this.grvStockIn[e.ColumnIndex, e.RowIndex].Value = !Convert.ToBoolean(this.grvStockIn[e.ColumnIndex, e.RowIndex].Value);
             }
             else
                 Appz.OpenErrorDialog("дЅи “Ѕ“√∂а≈„Ќ°√“°“√Ј’идЅиЌ¬ўигє ∂“є–Ј”√“¬°“√дій");
         }
         else if (e.ColumnIndex == indexSTOCKINCODE)
         {
             frmStockInEdt = new StockInEdit(Convert.ToDouble(this.grvStockIn[indexLOID, e.RowIndex].Value));
             frmStockInEdt.ShowDialog();
             SearchData();
         }
     }
 }