public void bindCBData(CLAS.CashBlotterDataTable dt) { UIHelper.ComboBoxInit("CBInstrumentType", valuableTypeComboBox, FM); UIHelper.ComboBoxInit("CBInstrumentType", cBDetailGridEX.DropDowns["ddInstrumentType"], FM); UIHelper.ComboBoxInit("CBNatureOfPayment", natureOfPaymentComboBox, FM); UIHelper.ComboBoxInit("CBPaymentSource", paymentSourceComboBox, FM); UIHelper.ComboBoxInit("CBStatus", statusCodeComboBox, FM); UIHelper.ComboBoxInit("CurrencyCode", currencyCodeComboBox, FM); UIHelper.ComboBoxInit("vofficelist", mccOfficeCode, FM); ucContactSelectBox1.FM = FM; ucContactSelectBox2.FM = FM; setBindingSources(); CLAS.CBDetailDataTable cbDetailDt; cbDetailDt = FM.GetCLASMng().DB.CBDetail; //CLAS.CashBlotterRow cr = (CLAS.CashBlotterRow)FM.GetCLASMng().GetCashBlotter().GetCurrentRow()[0]; //cashBlotterBindingSource.Position= cashBlotterBindingSource.Find("CashBlotterID", cr.CashBlotterID); cbDetailDt.ColumnChanged += new DataColumnChangeEventHandler(cbDetailDt_ColumnChanged); FM.GetCLASMng().GetCashBlotter().OnUpdate += new atLogic.UpdateEventHandler(ucCashBlotterOffice_OnUpdate); FM.GetCLASMng().GetCBDetail().OnUpdate += new atLogic.UpdateEventHandler(ucCashBlotterOffice_OnUpdate); ApplySecurity(CurrentRow()); FileTreeView.BuildMenu(FM, tsActions, "CBOffice"); }
public CLAS.CashBlotterDataTable Load() { this.sqlDa.SelectCommand = sqlSelectAll; CLAS.CashBlotterDataTable dt = new CLAS.CashBlotterDataTable(); Fill(dt); return(dt); }
internal CashBlotterBE(CLASManager pBEMng) : base(pBEMng, pBEMng.DB.CashBlotter) { myA = pBEMng; myCashBlotterDT = (CLAS.CashBlotterDataTable)myDT; if (!myA.AtMng.AppMan.UseService && myODAL == null) { myODAL = myA.AtMng.DALMngr.GetCashBlotter(); } }
public CLAS.CashBlotterDataTable LoadBySecondConfirm(int SecondConfirm) { this.sqlDa.SelectCommand = sqlSelect; this.sqlSelect.Parameters.Clear(); this.sqlSelect.CommandText = "[CashBlotterSelectBySecondConfirm]"; this.sqlSelect.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null)); this.sqlSelect.Parameters.Add(new System.Data.SqlClient.SqlParameter("@SecondConfirm", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null)); this.sqlSelect.Parameters["@SecondConfirm"].Value = SecondConfirm; CLAS.CashBlotterDataTable dt = new CLAS.CashBlotterDataTable(); Fill(dt); return(dt); }