private void cmdAllocate_Click(object sender, EventArgs e) { try { if (grdList.CurrentRow == null) return; frm_AllocateRedInvoice oForm = new frm_AllocateRedInvoice(); oForm.HDON_MAU_ID = Utility.Int32Dbnull(grdList.GetValue(HoadonMau.Columns.IdHoadonMau)); oForm.dtCapPhat = dtCapPhat; oForm.ShowDialog(); grdList_SelectionChanged(sender,e); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }
private void cmdAllocate_Click(object sender, EventArgs e) { try { if (grdList.CurrentRow == null) { return; } frm_AllocateRedInvoice oForm = new frm_AllocateRedInvoice(); oForm.HDON_MAU_ID = Utility.Int32Dbnull(grdList.GetValue(HoadonMau.Columns.IdHoadonMau)); oForm.dtCapPhat = dtCapPhat; oForm.ShowDialog(); grdList_SelectionChanged(sender, e); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }
private void SuaCapPhat() { try { if (grdCapPhat.CurrentRow == null) { return; } frm_AllocateRedInvoice oForm = new frm_AllocateRedInvoice(); oForm.HDON_MAU_ID = Utility.Int32Dbnull(grdList.GetValue(HoadonCapphat.Columns.IdHoadonMau)); oForm.dtCapPhat = dtCapPhat; oForm.id_capphat = Utility.Int32Dbnull(grdCapPhat.GetValue(HoadonCapphat.Columns.IdCapphat)); oForm.ShowDialog(); grdList_SelectionChanged(new object(), new EventArgs()); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }
private void SuaCapPhat() { try { if (grdCapPhat.CurrentRow == null) return; frm_AllocateRedInvoice oForm = new frm_AllocateRedInvoice(); oForm.HDON_MAU_ID = Utility.Int32Dbnull(grdList.GetValue(HoadonCapphat.Columns.IdHoadonMau)); oForm.dtCapPhat = dtCapPhat; oForm.id_capphat = Utility.Int32Dbnull(grdCapPhat.GetValue(HoadonCapphat.Columns.IdCapphat)); oForm.ShowDialog(); grdList_SelectionChanged(new object(), new EventArgs()); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }