public void BindQRData(CLAS.OfficeAccountDataTable dt) { UIHelper.ComboBoxInit("officeaccounttype", ucAccountTypeMcc, FM); UIHelper.ComboBoxInit("officeaccounttype", officeAccountGridEX.DropDowns["ddAccountType"], FM); officeAccountBindingSource.DataMember = dt.TableName; officeAccountBindingSource.DataSource = dt.DataSet; dt.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged); FM.GetCLASMng().GetOfficeAccount().OnUpdate += new atLogic.UpdateEventHandler(ucOfficeQR_OnUpdate); }
//FileManager myFM; internal OfficeAccountBE(CLASManager pBEMng) : base(pBEMng, pBEMng.DB.OfficeAccount) { myA = pBEMng; myOfficeAccountDT = (CLAS.OfficeAccountDataTable)myDT; this.myOfficeAccountDT.AmountColumn.ExtendedProperties.Add("format", "C"); this.myOfficeAccountDT.CreditColumn.ExtendedProperties.Add("format", "C"); this.myOfficeAccountDT.DebitColumn.ExtendedProperties.Add("format", "C"); this.myOfficeAccountDT.BalanceColumn.ExtendedProperties.Add("format", "C"); if (!myA.AtMng.AppMan.UseService && myODAL == null) { myODAL = myA.AtMng.DALMngr.GetOfficeAccount(); } }