Пример #1
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     if (!FlowObj.InsertData(Appz.CurrentUserData.UserID, Appz.CurrentUserData.Warehouse))
         Appz.OpenErrorDialog(FlowObj.ErrorMessage);
     else
     {
         frmStockInReturnEdit = new StockInReturnEdit(FlowObj.LOID);
         frmStockInReturnEdit.ShowDialog();
         SearchData();
     }
 }
Пример #2
0
 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.Void.Name)
                 Appz.OpenErrorDialog("ф┴ш╩╥┴╥├╢р┼╫═б├╥┬б╥├╩╢╥╣╨┬бр┼╘бф┤щ");
             else
                 this.grvStockIn[e.ColumnIndex, e.RowIndex].Value = !Convert.ToBoolean(this.grvStockIn[e.ColumnIndex, e.RowIndex].Value);
         }
         else if (e.ColumnIndex == indexCODE)
         {
             frmStockInReturnEdit = new StockInReturnEdit(Convert.ToDouble(this.grvStockIn[indexLOID, e.RowIndex].Value));
             frmStockInReturnEdit.ShowDialog();
             SearchData();
         }
     }
 }