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(); } }
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(); } } }