private void VendorView_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) { if (e.FocusedRowHandle < 0) { return; } int iVendorId = Convert.ToInt32(VendorView.GetRowCellValue(e.FocusedRowHandle, "VendorId").ToString()); lblVendor.Text = VendorView.GetRowCellValue(e.FocusedRowHandle, "VendorName").ToString(); VendorName = VendorView.GetFocusedRowCellValue("VendorName").ToString(); PopulateRegDetails(iVendorId); GetGradeDetails(); GetValidToDate(); PopulateVendorGeneral(iVendorId); BsfGlobal.ClearUserUsage("Vendor-Master-Edit", iVendorId, BsfGlobal.g_sVendorDBName); //GetGradeDetails(); //if (m_tSupplyGrade == null) txtGSupplier.Text = ""; //if (m_tContractGrade == null) txtGContractor.Text = ""; //if (m_tServiceGrade == null) txtGService.Text = ""; }
private void frmReceiptEntry_FormClosed(object sender, FormClosedEventArgs e) { if (ReceiptId != 0) { BsfGlobal.ClearUserUsage("Buyer-Receipt-Edit", ReceiptId, BsfGlobal.g_sCRMDBName); } if (BsfGlobal.g_bWorkFlow == true) { if (ReceiptId != 0) { Cursor.Current = Cursors.WaitCursor; try { Parent.Controls.Owner.Hide(); } catch { } Cursor.Current = Cursors.Default; ChangeGridValue(ReceiptId); frmPMSReceiptRegister.m_oDW.Show(); frmPMSReceiptRegister.m_oDW.Select(); } else { Parent.Controls.Owner.Hide(); } } else { if (ReceiptId != 0) { ChangeGridValue(ReceiptId); CommFun.DW2.Hide(); CommFun.DW1.Show(); } } }
private void frmComplaintNewEntry_FormClosed(object sender, FormClosedEventArgs e) { if (m_iComplaintId != 0) { BsfGlobal.ClearUserUsage("Complaint-Entry-Modify", m_iComplaintId, BsfGlobal.g_sCRMDBName); } if (BsfGlobal.g_bWorkFlow == true) { if (m_iComplaintId != 0) { Cursor.Current = Cursors.WaitCursor; try { Parent.Controls.Owner.Hide(); } catch { } Cursor.Current = Cursors.Default; ChangeGridValue(m_iComplaintId); frmComplaintRegister.m_oDW.Show(); frmComplaintRegister.m_oDW.Select(); } else { Parent.Controls.Owner.Hide(); } } else { if (m_iComplaintId != 0) { CommFun.DW2.Hide(); CommFun.DW1.Show(); } } }
private void frmServiceOrderBill_FormClosed(object sender, FormClosedEventArgs e) { if (m_iRegBillId != 0) { BsfGlobal.ClearUserUsage("CRM-ServiceBill-Edit", m_iRegBillId, BsfGlobal.g_sCRMDBName); } if (BsfGlobal.g_bWorkFlow == true) { if (m_iRegBillId != 0) { Cursor.Current = Cursors.WaitCursor; try { Parent.Controls.Owner.Hide(); } catch { } Cursor.Current = Cursors.Default; ChangeGridValue(m_iRegBillId); frmServiceOrderBillReg.m_oDW.Show(); frmServiceOrderBillReg.m_oDW.Select(); } else { Parent.Controls.Owner.Hide(); } } else { if (m_iRegBillId != 0) { CommFun.DW2.Hide(); CommFun.DW1.Show(); } } }