private void GetUserDetails(int UserId, string UserName) { try { DtUserList.Clear(); DataGridDetails.Refresh(); DtUserList = CmC.GetUserDetails(UserId, UserName); SBind.DataSource = DtUserList; datagriddesign(); DataGridDetails.DataSource = SBind; } catch (Exception _exception) { CmC.InsertException(_exception); messageShow.singlemsgtext(CmC.ExceptionErrorMessage); } }
private void GetStockList(int BrandCode, int ColorCode, string BrandName, int OperationType) { try { DtStockList.Clear(); DataGridDetails.Refresh(); DtStockList = CmC.GetStockReport(BrandCode, ColorCode, BrandName, OperationType); SBind.DataSource = DtStockList; datagriddesign(); DataGridDetails.DataSource = SBind; DataGridDetails.ClearSelection(); } catch (Exception _exception) { CmC.InsertException(_exception); messageShow.singlemsgtext(CmC.ExceptionErrorMessage); } }
private void GetSupplierLedgerList(string SearchText, int SupplierCode) { try { SelectedSupplierCode = 0; dt.Clear(); DataGridDetails.Refresh(); dt = CmC.GetSupplierList(SearchText, SupplierCode); SBind.DataSource = dt; datagriddesign(); DataGridDetails.DataSource = SBind; } catch (Exception _exception) { CmC.InsertException(_exception); messageShow.singlemsgtext(CmC.ExceptionErrorMessage); } }
private void GetTaxLedgerList() { try { ResetControls(); SelectedTaxCode = 0; dt.Clear(); DataGridDetails.Refresh(); dt = CmC.GetTaxList(); SBind.DataSource = dt; datagriddesign(); DataGridDetails.DataSource = SBind; } catch (Exception _exception) { CmC.InsertException(_exception); messageShow.singlemsgtext(CmC.ExceptionErrorMessage); } }