public ObservableCollection <IUiObject> LoadLeasingUiObjects( UiDualDfSearchTextObject.OnAssistQueryRequestHandler assistQuery, UiDfObject.ChangedField changedField) { ObservableCollection <IUiObject> observableCollection = new ObservableCollection <IUiObject>(); UiDualDfSearchTextObject cuentaCp = new UiDualDfSearchTextObject(Resources.CuentaCP, UiConstants.LabelTextWidthDefault); cuentaCp.DataFieldFirst = "CTACP"; cuentaCp.TableName = "PROVEE1"; cuentaCp.AssistTableName = "CU1"; cuentaCp.AssistDataFieldFirst = "CODIGO"; cuentaCp.AssistDataFieldSecond = "DESCRIP"; cuentaCp.Height = UiConstants.TextboxHeight; cuentaCp.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; cuentaCp.TextContentSecondWidth = UiConstants.TextBoxWidthDefault; cuentaCp.SourceView = new DataTable(); cuentaCp.ItemSource = new DataTable(); cuentaCp.PrimaryKey = "NUM_PROVEE"; cuentaCp.OnChangedField += changedField; cuentaCp.ButtonImage = MasterModuleConstants.ImagePath; cuentaCp.DataField = "CTACP"; cuentaCp.OnAssistQuery += assistQuery; //leasingBoxMultipleObject.AddDataField(cuentaCp); observableCollection.Add(cuentaCp); UiDualDfSearchTextObject cuentaLp = new UiDualDfSearchTextObject(Resources.CuentaLP, UiConstants.LabelTextWidthDefault); cuentaLp.DataFieldFirst = "CTALP"; cuentaLp.TableName = "PROVEE1"; cuentaLp.AssistTableName = "CU1"; cuentaLp.AssistDataFieldFirst = "CODIGO"; cuentaLp.AssistDataFieldSecond = "DESCRIP"; cuentaLp.Height = UiConstants.TextboxHeight; cuentaLp.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; cuentaLp.TextContentSecondWidth = UiConstants.TextBoxWidthLarge; cuentaLp.SourceView = new DataTable(); cuentaLp.ItemSource = new DataTable(); cuentaLp.PrimaryKey = "NUM_PROVEE"; cuentaLp.OnChangedField += changedField; cuentaLp.ButtonImage = MasterModuleConstants.ImagePath; cuentaLp.DataField = "CTALP"; cuentaLp.OnAssistQuery += assistQuery; observableCollection.Add(cuentaLp); /* * UiDataFieldCheckBox uiDataFieldCheck = new UiDataFieldCheckBox(); * uiDataFieldCheck.TableName = "PROVEE1"; * uiDataFieldCheck.DataField = "PROVEELEAS"; * uiDataFieldCheck.ItemSource = new DataTable(); * uiDataFieldCheck.OnChangedField += changedField; * uiDataFieldCheck.TextContentWidth = UiConstants.TextBoxWidthDefault; * uiDataFieldCheck.LabelVisible = true; * uiDataFieldCheck.Height = UiConstants.TextboxHeight; * uiDataFieldCheck.PrimaryKey = "NUM_PROVEE"; * uiDataFieldCheck.Content = "Es proveedor de leasing"; * uiDataFieldCheck.AllowedEmpty = true; * uiDataFieldCheck.IsReadOnly = false; * observableCollection.Add(uiDataFieldCheck); */ return(observableCollection); }
private IUiObject BuildOffice(UiDualDfSearchTextObject.OnAssistQueryRequestHandler assistQuery, UiDfObject.ChangedField changedField) { UiMultipleDfObject multipleDfObject = new UiMultipleDfObject(); UiDualDfSearchTextObject dualSearchTextObject1 = new UiDualDfSearchTextObject(Properties.Resources.Empresa, UiConstants.LabelTextWidthDefault); dualSearchTextObject1.ButtonImage = MasterModuleConstants.ImagePath; dualSearchTextObject1.AssistDataFieldFirst = "CODIGO"; dualSearchTextObject1.AssistDataFieldSecond = "NOMBRE"; dualSearchTextObject1.AssistTableName = "SUBLICEN"; dualSearchTextObject1.Height = UiConstants.TextboxHeight; dualSearchTextObject1.LabelText = ProviderConstants.LeftPartLabel[14]; dualSearchTextObject1.IsVisible = true; dualSearchTextObject1.IsReadOnly = true; dualSearchTextObject1.PrimaryKey = "NUM_PROVEE"; dualSearchTextObject1.TableName = "PROVEE1"; dualSearchTextObject1.OnChangedField += changedField; dualSearchTextObject1.IsReadOnlySecond = false; dualSearchTextObject1.IsReadOnlyFirst = false; dualSearchTextObject1.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; dualSearchTextObject1.TextContentSecondWidth = UiConstants.TextBoxWidthDefault; dualSearchTextObject1.LabelTextWidth = UiConstants.LabelTextWidthDefault; dualSearchTextObject1.DataFieldFirst = MiddlePartsFields[14]; dualSearchTextObject1.DataField = MiddlePartsFields[14]; dualSearchTextObject1.OnAssistQuery += assistQuery; multipleDfObject.AddDataField(dualSearchTextObject1); UiDualDfSearchTextObject dualSearchTextObject2 = new UiDualDfSearchTextObject(Properties.Resources.Empresa, UiConstants.LabelTextWidthDefault); dualSearchTextObject2.ButtonImage = MasterModuleConstants.ImagePath; dualSearchTextObject2.AssistDataFieldFirst = "CODIGO"; dualSearchTextObject2.AssistDataFieldSecond = "NOMBRE"; dualSearchTextObject2.AssistTableName = "OFICINAS"; dualSearchTextObject2.Height = UiConstants.TextboxHeight; dualSearchTextObject2.LabelText = MiddlePartsFields[15]; dualSearchTextObject2.IsVisible = true; dualSearchTextObject2.IsReadOnly = true; dualSearchTextObject2.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; dualSearchTextObject2.TextContentSecondWidth = UiConstants.TextBoxWidthDefault; dualSearchTextObject2.PrimaryKey = "NUM_PROVEE"; dualSearchTextObject2.TableName = "PROVEE1"; dualSearchTextObject2.OnChangedField += changedField; dualSearchTextObject2.IsReadOnlySecond = true; dualSearchTextObject2.IsReadOnlyFirst = false; dualSearchTextObject2.LabelTextWidth = UiConstants.LabelTextWidthDefault; dualSearchTextObject2.DataFieldFirst = "OFICINA"; dualSearchTextObject2.DataField = "OFICINA"; dualSearchTextObject2.OnAssistQuery += assistQuery; multipleDfObject.AddDataField(dualSearchTextObject2); return(multipleDfObject); }
public ObservableCollection <IUiObject> LoadIntraco( UiDualDfSearchTextObject.OnAssistQueryRequestHandler assistQuery, UiDfObject.ChangedField changedField) { ObservableCollection <IUiObject> observableCollection = new ObservableCollection <IUiObject>(); UiDualDfSearchTextObject cuentaSoportado = new UiDualDfSearchTextObject(Resources.CtaSoportado, UiConstants.LabelTextWidthDefault); cuentaSoportado.DataFieldFirst = "CTAINTRACOP"; cuentaSoportado.TableName = "PROVEE1"; cuentaSoportado.AssistTableName = "CU1"; cuentaSoportado.AssistDataFieldFirst = "CODIGO"; cuentaSoportado.AssistDataFieldSecond = "DESCRIP"; cuentaSoportado.Height = UiConstants.TextboxHeight; cuentaSoportado.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; cuentaSoportado.TextContentSecondWidth = UiConstants.TextBoxWidthLarge; cuentaSoportado.SourceView = new DataTable(); cuentaSoportado.ItemSource = new DataTable(); cuentaSoportado.PrimaryKey = "NUM_PROVEE"; cuentaSoportado.OnChangedField += changedField; cuentaSoportado.ButtonImage = MasterModuleConstants.ImagePath; cuentaSoportado.DataField = "CTAINTRACOP"; cuentaSoportado.OnAssistQuery += assistQuery; observableCollection.Add(cuentaSoportado); //intacoBoxMultipleObject.AddDataField(cuentaSoportado); UiDualDfSearchTextObject cuentaRepercutido = new UiDualDfSearchTextObject("Cta.Repercutido", UiConstants.LabelTextWidthDefault); cuentaRepercutido.DataFieldFirst = "CTAINTRACOPREP"; cuentaRepercutido.TableName = "PROVEE1"; cuentaRepercutido.AssistTableName = "CU1"; cuentaRepercutido.AssistDataFieldFirst = "CODIGO"; cuentaRepercutido.AssistDataFieldSecond = "DESCRIP"; cuentaRepercutido.Height = UiConstants.TextboxHeight; cuentaRepercutido.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; cuentaRepercutido.TextContentSecondWidth = UiConstants.TextBoxWidthLarge; cuentaRepercutido.SourceView = new DataTable(); cuentaRepercutido.ItemSource = new DataTable(); cuentaRepercutido.PrimaryKey = "NUM_PROVEE"; cuentaRepercutido.OnChangedField += changedField; cuentaRepercutido.ButtonImage = MasterModuleConstants.ImagePath; cuentaRepercutido.DataField = "CTAINTRACOPREP"; cuentaRepercutido.OnAssistQuery += assistQuery; observableCollection.Add(cuentaRepercutido); return(observableCollection); }
private IUiObject BuildUiSupplierTypeObject(UiDualDfSearchTextObject.OnAssistQueryRequestHandler assistQuery, UiDfObject.ChangedField changedField) { UiDualDfSearchTextObject dfSearchTextObject = new UiDualDfSearchTextObject("Tipo.Prove", UiConstants.LabelTextWidthDefault); dfSearchTextObject.ButtonImage = MasterModuleConstants.ImagePath; dfSearchTextObject.TableName = "PROVEE1"; dfSearchTextObject.PrimaryKey = ProviderConstants.PrimaryKey; dfSearchTextObject.AssistTableName = ProviderConstants.TipoProveAssistTableName; dfSearchTextObject.AssistDataFieldFirst = ProviderConstants.TipoProveAssistDataFieldFirst; dfSearchTextObject.AssistDataFieldSecond = ProviderConstants.TipoProveAssistDataFieldSecond; dfSearchTextObject.DataField = ProviderConstants.TipoProveDataFieldFirst; dfSearchTextObject.DataFieldFirst = ProviderConstants.TipoProveDataFieldFirst; dfSearchTextObject.Height = UiConstants.TextboxHeight; dfSearchTextObject.LabelTextWidth = UiConstants.LabelTextWidthDefault; dfSearchTextObject.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; dfSearchTextObject.TextContentSecondWidth = UiConstants.TextBoxWidthDefault; dfSearchTextObject.IsReadOnlyFirst = true; dfSearchTextObject.IsReadOnlySecond = false; dfSearchTextObject.SourceView = new DataTable(); dfSearchTextObject.OnChangedField += changedField; dfSearchTextObject.OnAssistQuery += assistQuery; return(dfSearchTextObject); }
private IUiObject BuildProvinceDfSearchTextObject(string provinceDataField, UiDualDfSearchTextObject.OnAssistQueryRequestHandler assistQuery, UiDfObject.ChangedField changedField) { UiDualDfSearchTextObject dualSearchTextObject1 = new UiDualDfSearchTextObject(Resources.Provincia, UiConstants.LabelTextWidthDefault); dualSearchTextObject1.ButtonImage = MasterModuleConstants.ImagePath; dualSearchTextObject1.AssistDataFieldFirst = ProviderConstants.ZipKey; dualSearchTextObject1.AssistDataFieldSecond = ProviderConstants.ProvinceKey; dualSearchTextObject1.AssistTableName = ProviderConstants.ProvinceAssistTableName; dualSearchTextObject1.Height = UiConstants.TextboxHeight; dualSearchTextObject1.IsVisible = true; dualSearchTextObject1.PrimaryKey = "NUM_COMI"; dualSearchTextObject1.TableName = "COMISIO"; dualSearchTextObject1.OnChangedField += changedField; dualSearchTextObject1.IsReadOnlySecond = true; dualSearchTextObject1.IsReadOnlyFirst = false; dualSearchTextObject1.DataFieldFirst = provinceDataField; dualSearchTextObject1.DataField = provinceDataField; dualSearchTextObject1.TextContentFirstWidth = UiConstants.TextBoxWidthDefault; dualSearchTextObject1.TextContentSecondWidth = UiConstants.TextBoxWidthDefault; dualSearchTextObject1.OnAssistQuery += assistQuery; return(dualSearchTextObject1); }
private UiDualDfSearchTextObject BuildPaisSearchTextObject(string paisDataField, UiDualDfSearchTextObject.OnAssistQueryRequestHandler assistQuery, UiDfObject.ChangedField changedField) { UiDualDfSearchTextObject paisSearchTextObject = new UiDualDfSearchTextObject("Pais", UiConstants.LabelTextWidthDefault); paisSearchTextObject.ButtonImage = MasterModuleConstants.ImagePath; paisSearchTextObject.TableName = "NUM_COMI"; paisSearchTextObject.PrimaryKey = "COMISIO"; paisSearchTextObject.AssistTableName = "PAIS"; paisSearchTextObject.AssistDataFieldFirst = "SIGLAS"; paisSearchTextObject.AssistDataFieldSecond = "PAIS"; paisSearchTextObject.DataField = paisDataField; paisSearchTextObject.DataFieldFirst = paisDataField; paisSearchTextObject.Height = UiConstants.TextboxHeight; paisSearchTextObject.LabelTextWidth = UiConstants.LabelTextWidthDefault; paisSearchTextObject.TextContentFirstWidth = UiConstants.TextBoxWidthDefault; paisSearchTextObject.TextContentSecondWidth = "150"; paisSearchTextObject.IsReadOnlyFirst = false; paisSearchTextObject.IsReadOnlySecond = false; paisSearchTextObject.SourceView = new DataTable(); paisSearchTextObject.OnChangedField += changedField; paisSearchTextObject.OnAssistQuery += assistQuery; return(paisSearchTextObject); }
/// <summary> /// This build up a collection of object to be rendered and binded with the data templates. /// </summary> /// <param name="assistQuery"></param> /// <param name="changedField"></param> /// <returns></returns> public ObservableCollection <IUiObject> BuildRightPartObjects(UiDualDfSearchTextObject.OnAssistQueryRequestHandler assistQuery, UiDfObject.ChangedField changedField) { ObservableCollection <IUiObject> rightPageCollection = new ObservableCollection <IUiObject>(); UiDualDfSearchTextObject uiVendedor = new UiDualDfSearchTextObject("Vendedor", UiConstants.LabelTextWidthDefault); uiVendedor.OnAssistQuery += assistQuery; uiVendedor.OnChangedField += changedField; uiVendedor.DataFieldFirst = RightPartsFields[0]; uiVendedor.TableName = "COMISIO"; uiVendedor.AssistTableName = "VENDEDOR"; uiVendedor.AssistDataFieldFirst = "NUM_VENDE"; uiVendedor.AssistDataFieldSecond = "NOMBRE"; rightPageCollection.Add(uiVendedor); UiDualDfSearchTextObject uiMarket = new UiDualDfSearchTextObject("Mercado", UiConstants.LabelTextWidthDefault); uiMarket.OnAssistQuery += assistQuery; uiMarket.OnChangedField += changedField; uiMarket.DataFieldFirst = RightPartsFields[1]; uiMarket.AssistDataFieldFirst = "CODIGO"; uiMarket.AssistDataFieldSecond = "NOMBRE"; uiMarket.TableName = "COMISO"; uiMarket.AssistTableName = "MERCADO"; rightPageCollection.Add(uiMarket); UiDualDfSearchTextObject uiBusiness = new UiDualDfSearchTextObject("Negocio", UiConstants.LabelTextWidthDefault); uiBusiness.OnAssistQuery += assistQuery; uiBusiness.OnChangedField += changedField; uiBusiness.DataField = "NEGOCIO"; uiBusiness.AssistDataFieldFirst = "CODIGO"; uiBusiness.AssistDataFieldSecond = "NOMBRE"; uiBusiness.TableName = "COMISIO"; uiBusiness.AssistTableName = "NEGOCIO"; rightPageCollection.Add(uiBusiness); UiDualDfSearchTextObject uiCanal = new UiDualDfSearchTextObject("Canal", UiConstants.LabelTextWidthDefault); uiCanal.OnAssistQuery += assistQuery; uiCanal.OnChangedField += changedField; uiCanal.DataFieldFirst = "CANAL"; uiCanal.AssistDataFieldFirst = "CODIGO"; uiCanal.AssistDataFieldSecond = "NOMBRE"; uiCanal.AssistTableName = "CANAL"; uiCanal.TableName = "COMISIO"; rightPageCollection.Add(uiCanal); UiDualDfSearchTextObject uiClavePto = new UiDualDfSearchTextObject("Clave PPto", UiConstants.LabelTextWidthDefault); uiClavePto.OnAssistQuery += assistQuery; uiClavePto.OnChangedField += changedField; uiClavePto.DataFieldFirst = "CLAVEPPTO"; uiClavePto.AssistTableName = "CLAVEPTO"; uiClavePto.AssistDataFieldFirst = "COD_CLAVE"; uiClavePto.AssistDataFieldSecond = "NOMBRE"; uiClavePto.TableName = "COMISIO"; rightPageCollection.Add(uiClavePto); UiDualDfSearchTextObject uiOrigen = new UiDualDfSearchTextObject("Origen", UiConstants.LabelTextWidthDefault); uiOrigen.OnAssistQuery += assistQuery; uiOrigen.OnChangedField += changedField; uiOrigen.DataFieldFirst = "ORIGEN_COMI"; uiOrigen.AssistTableName = "ORIGEN"; uiOrigen.AssistDataFieldFirst = "NUM_ORIGEN"; uiOrigen.AssistDataFieldSecond = "NOMBRE"; uiOrigen.TableName = "COMISIO"; rightPageCollection.Add(uiOrigen); UiDualDfSearchTextObject officeZone = new UiDualDfSearchTextObject("Zona Ofi.", UiConstants.LabelTextWidthDefault); officeZone.OnAssistQuery += assistQuery; officeZone.OnChangedField += changedField; officeZone.DataFieldFirst = "ZONA_OFI"; officeZone.AssistTableName = "ZONAS"; officeZone.AssistDataFieldFirst = "NUM_ZONA"; officeZone.AssistDataFieldSecond = "NOMBRE"; officeZone.TableName = "COMISIO"; rightPageCollection.Add(officeZone); UiDataArea alert = new UiDataArea(); alert.DataField = "AVISO"; alert.OnChangedField += changedField; alert.TableName = "COMISIO"; rightPageCollection.Add(alert); return(rightPageCollection); }
private ObservableCollection <IUiObject> LoadInvocingData(UiDualDfSearchTextObject.OnAssistQueryRequestHandler assistQuery, UiDfObject.ChangedField changedField) { ObservableCollection <IUiObject> invoicingObjects = new ObservableCollection <IUiObject>(); UiDualDfSearchTextObject paymentSearchBox = new UiDualDfSearchTextObject(Resources.FormaDePago, UiConstants.LabelTextWidthDefault); paymentSearchBox.DataFieldFirst = "FORPA"; paymentSearchBox.TableName = "PROVEE2"; paymentSearchBox.AssistTableName = "FORMAS"; paymentSearchBox.AssistDataFieldFirst = "CODIGO"; paymentSearchBox.AssistDataFieldSecond = "NOMBRE"; paymentSearchBox.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; paymentSearchBox.TextContentSecondWidth = UiConstants.TextBoxWidthDefault; paymentSearchBox.Height = UiConstants.TextboxHeight; paymentSearchBox.SourceView = new DataTable(); paymentSearchBox.ItemSource = new DataTable(); paymentSearchBox.PrimaryKey = "NUM_PROVEE"; paymentSearchBox.OnChangedField += changedField; paymentSearchBox.ButtonImage = MasterModuleConstants.ImagePath; paymentSearchBox.DataField = "FORPA"; paymentSearchBox.OnAssistQuery += assistQuery; invoicingObjects.Add(paymentSearchBox); UiMultipleDfObject payementPlaces = new UiMultipleDfObject(); UiDfObject dataDfObject = new UiDfObject(); dataDfObject.LabelText = Resources.PlazoDePago; dataDfObject.DataField = "PLAZO"; dataDfObject.TableName = "PROVEE2"; dataDfObject.LabelTextWidth = UiConstants.LabelTextWidthDefault; dataDfObject.LabelVisible = true; dataDfObject.Height = UiConstants.TextboxHeight; dataDfObject.TextContentWidth = "50"; dataDfObject.OnChangedField += changedField; dataDfObject.ItemSource = new DataTable(); dataDfObject.PrimaryKey = "NUM_PROVEE"; dataDfObject.AllowedEmpty = true; payementPlaces.AddDataField(dataDfObject); // plazo de pago 2. UiDfObject dataDfObject2 = new UiDfObject(); dataDfObject2.DataField = "PLAZO2"; dataDfObject2.TableName = "PROVEE2"; dataDfObject2.LabelVisible = false; dataDfObject2.Height = UiConstants.TextboxHeight; dataDfObject2.TextContentWidth = "50"; dataDfObject2.OnChangedField += changedField; dataDfObject2.PrimaryKey = "NUM_PROVEE"; dataDfObject2.AllowedEmpty = true; dataDfObject2.ItemSource = new DataTable(); payementPlaces.AddDataField(dataDfObject2); // plazo de pago 3. UiDfObject dataDfObject3 = new UiDfObject(); dataDfObject3.DataField = "PLAZO3"; dataDfObject3.TableName = "PROVEE2"; dataDfObject2.LabelVisible = false; dataDfObject3.Height = UiConstants.TextboxHeight; dataDfObject3.TextContentWidth = "50"; dataDfObject3.OnChangedField += changedField; dataDfObject3.PrimaryKey = "NUM_PROVEE"; dataDfObject3.AllowedEmpty = true; dataDfObject3.ItemSource = new DataTable(); payementPlaces.AddDataField(dataDfObject3); // dias de pago UiDfObject payDfObject = new UiDfObject("Dias de pago", UiConstants.LabelTextWidthDefault); payDfObject.DataField = "DIA"; payDfObject.TableName = "PROVEE2"; payDfObject.LabelTextWidth = UiConstants.LabelTextWidthDefault; payDfObject.LabelVisible = true; payDfObject.Height = UiConstants.TextboxHeight; payDfObject.TextContentWidth = "50"; payDfObject.IsVisible = true; payDfObject.OnChangedField += changedField; payDfObject.PrimaryKey = "NUM_PROVEE"; payDfObject.AllowedEmpty = true; payementPlaces.AddDataField(payDfObject); UiDfObject payDfObject1 = new UiDfObject(); payDfObject1.DataField = "DIA2"; payDfObject1.TableName = "PROVEE2"; payDfObject1.ItemSource = new DataTable(); payDfObject.IsVisible = true; payDfObject1.LabelVisible = false; payDfObject1.Height = UiConstants.TextboxHeight; payDfObject1.TextContentWidth = "50"; payDfObject1.OnChangedField += changedField; payDfObject1.PrimaryKey = "NUM_PROVEE"; payDfObject1.AllowedEmpty = true; payementPlaces.AddDataField(payDfObject1); UiDfObject payDfObject2 = new UiDfObject(); payDfObject2.DataField = "DIA3"; payDfObject2.TableName = "PROVEE2"; payDfObject2.LabelVisible = false; payDfObject.IsVisible = true; payDfObject2.Height = UiConstants.TextboxHeight; payDfObject2.TextContentWidth = "50"; payDfObject2.OnChangedField += changedField; payDfObject2.PrimaryKey = "NUM_PROVEE"; payDfObject2.AllowedEmpty = true; payementPlaces.AddDataField(payDfObject2); invoicingObjects.Add(payementPlaces); UiMultipleDfObject saleRowMultipleDfObject = new UiMultipleDfObject(); saleRowMultipleDfObject.TableName = "PROVEE2"; UiDfObject saleDfObject = new UiDfObject("Descuento", UiConstants.LabelTextWidthDefault); saleDfObject.DataField = "DTO"; saleDfObject.TableName = "PROVEE2"; saleDfObject.Height = UiConstants.TextboxHeight; saleDfObject.ItemSource = new DataTable(); saleDfObject.PrimaryKey = "NUM_PROVEE"; saleDfObject.OnChangedField += changedField; saleDfObject.LabelTextWidth = UiConstants.LabelTextWidthDefault; saleDfObject.LabelVisible = true; saleDfObject.Height = UiConstants.TextboxHeight; saleDfObject.TextContentWidth = UiConstants.TextBoxWidthSmall; saleRowMultipleDfObject.AddDataField(saleDfObject); UiDfObject readyPayment = new UiDfObject("Pronto Pago", UiConstants.LabelTextWidthDefault); readyPayment.DataField = "PP"; readyPayment.TableName = "PROVEE2"; readyPayment.ItemSource = new DataTable(); readyPayment.PrimaryKey = "NUM_PROVEE"; readyPayment.OnChangedField += changedField; readyPayment.ItemSource = new DataTable(); readyPayment.LabelTextWidth = UiConstants.LabelTextWidthDefault; readyPayment.LabelVisible = true; readyPayment.Height = UiConstants.TextboxHeight; readyPayment.TextContentWidth = UiConstants.TextBoxWidthSmall; saleRowMultipleDfObject.AddDataField(readyPayment); UiDfObject readyPayment1 = new UiDfObject("Tipo Iva", UiConstants.LabelTextWidthDefault); readyPayment1.DataField = "TIPOIVA"; readyPayment1.TableName = "PROVEE1"; readyPayment1.ItemSource = new DataTable(); readyPayment1.PrimaryKey = "NUM_PROVEE"; readyPayment1.OnChangedField += changedField; readyPayment1.ItemSource = new DataTable(); readyPayment1.LabelTextWidth = UiConstants.LabelTextWidthDefault; readyPayment1.LabelVisible = true; readyPayment1.Height = UiConstants.TextboxHeight; readyPayment1.TextContentWidth = UiConstants.TextBoxWidthSmall; saleRowMultipleDfObject.AddDataField(readyPayment1); invoicingObjects.Add(saleRowMultipleDfObject); // mese vacaciones 1 UiMultipleDfObject vacaciones = new UiMultipleDfObject(); UiDualDfSearchTextObject vacationMonth1 = new UiDualDfSearchTextObject("Mes vacaciones", UiConstants.LabelTextWidthDefault); vacationMonth1.DataFieldFirst = "MESVACA"; vacationMonth1.TableName = "PROVEE1"; vacationMonth1.AssistTableName = "MESES"; vacationMonth1.AssistDataFieldFirst = "NUMERO_MES"; vacationMonth1.AssistDataFieldSecond = "MES"; vacationMonth1.Height = UiConstants.TextboxHeight; vacationMonth1.SourceView = new DataTable(); vacationMonth1.ItemSource = new DataTable(); vacationMonth1.PrimaryKey = "NUM_PROVEE"; vacationMonth1.OnChangedField += changedField; vacationMonth1.ButtonImage = MasterModuleConstants.ImagePath; vacationMonth1.DataField = "MESVACA"; vacationMonth1.OnAssistQuery += assistQuery; vacationMonth1.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; vacationMonth1.TextContentSecondWidth = UiConstants.TextBoxWidthSmall; vacaciones.AddDataField(vacationMonth1); UiDualDfSearchTextObject vacationMonth2 = new UiDualDfSearchTextObject("Segundo Mes", UiConstants.LabelTextWidthDefault); vacationMonth2.DataFieldFirst = "MESVACA2"; vacationMonth2.TableName = "PROVEE1"; vacationMonth2.AssistTableName = "MESES"; vacationMonth2.AssistDataFieldFirst = "NUMERO_MES"; vacationMonth2.AssistDataFieldSecond = "MES"; vacationMonth2.Height = UiConstants.TextboxHeight; vacationMonth2.SourceView = new DataTable(); vacationMonth2.ItemSource = new DataTable(); vacationMonth2.PrimaryKey = "NUM_PROVEE"; vacationMonth2.OnChangedField += changedField; vacationMonth2.ButtonImage = MasterModuleConstants.ImagePath; vacationMonth2.DataField = "MESVACA2"; vacationMonth2.OnAssistQuery += assistQuery; vacaciones.AddDataField(vacationMonth2); invoicingObjects.Add(vacaciones); UiDfObject cuenta = new UiDfObject("Cuenta Bancaria", UiConstants.LabelTextWidthDefault); cuenta.DataAllowed = ControlExt.DataType.BankAccount; cuenta.DataField = "CC"; cuenta.TableName = "PROVEE1"; cuenta.ItemSource = new DataTable(); cuenta.LabelVisible = true; cuenta.Height = UiConstants.TextboxHeight; cuenta.TextContentWidth = UiConstants.TextBoxWidthLarge; cuenta.OnChangedField += changedField; invoicingObjects.Add(cuenta); UiDfObject cuenta1 = new UiDfObject("IBAN", UiConstants.LabelTextWidthDefault); cuenta1.DataAllowed = ControlExt.DataType.BankAccount; cuenta1.DataField = "IBAN"; cuenta1.TableName = "PROVEE1"; cuenta1.DataAllowed = ControlExt.DataType.IbanField; cuenta1.ItemSource = new DataTable(); cuenta1.LabelVisible = true; cuenta1.Height = UiConstants.TextboxHeight; cuenta1.TextContentWidth = UiConstants.TextBoxWidthLarge; cuenta1.OnChangedField += changedField; invoicingObjects.Add(cuenta1); UiMultipleDfObject uiBancosDfObject = new UiMultipleDfObject(); UiDualDfSearchTextObject uiDualDfSearch = new UiDualDfSearchTextObject("Banco", UiConstants.LabelTextWidthDefault); uiDualDfSearch.ButtonImage = MasterModuleConstants.ImagePath; uiDualDfSearch.AssistDataFieldFirst = "CODBAN"; uiDualDfSearch.AssistDataFieldSecond = "NOMBRE"; uiDualDfSearch.AssistTableName = "BANCO"; uiDualDfSearch.Height = UiConstants.TextboxHeight; uiDualDfSearch.IsVisible = true; uiDualDfSearch.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; uiDualDfSearch.TextContentSecondWidth = UiConstants.TextBoxWidthDefault; uiDualDfSearch.PrimaryKey = "NUM_PROVEE"; uiDualDfSearch.TableName = "PROVEE1"; uiDualDfSearch.OnChangedField += changedField; uiDualDfSearch.IsReadOnlySecond = true; uiDualDfSearch.IsReadOnlyFirst = false; uiDualDfSearch.LabelVisible = true; uiDualDfSearch.LabelTextWidth = UiConstants.LabelTextWidthDefault; uiDualDfSearch.DataFieldFirst = "BANCO"; uiDualDfSearch.DataField = "BANCO"; uiDualDfSearch.ItemSource = new DataTable(); uiDualDfSearch.SourceView = new DataTable(); uiDualDfSearch.OnAssistQuery += assistQuery; uiBancosDfObject.AddDataField(uiDualDfSearch); UiDfObject swifDfObject = new UiDfObject("SWIFT", UiConstants.LabelTextWidthDefault); swifDfObject.DataAllowed = ControlExt.DataType.Swift; swifDfObject.DataField = "SWIFT"; swifDfObject.TableName = "PROVEE1"; swifDfObject.ItemSource = new DataTable(); swifDfObject.LabelVisible = true; swifDfObject.Height = UiConstants.TextboxHeight; swifDfObject.TextContentWidth = UiConstants.TextBoxWidthSmall; swifDfObject.OnChangedField += changedField; uiBancosDfObject.AddDataField(swifDfObject); invoicingObjects.Add(uiBancosDfObject); UiMultipleDfObject uiIdiomaDivisDfObject = new UiMultipleDfObject(); UiDualDfSearchTextObject uiIdioma = new UiDualDfSearchTextObject("Idioma", UiConstants.LabelTextWidthDefault); uiIdioma.ButtonImage = MasterModuleConstants.ImagePath; uiIdioma.AssistDataFieldFirst = "CODIGO"; uiIdioma.AssistDataFieldSecond = "NOMBRE"; uiIdioma.AssistTableName = "IDIOMAS"; uiIdioma.Height = UiConstants.TextboxHeight; uiIdioma.IsVisible = true; uiIdioma.PrimaryKey = "NUM_PROVEE"; uiIdioma.TableName = "PROVEE1"; uiIdioma.OnChangedField += changedField; uiIdioma.IsReadOnlySecond = true; uiIdioma.IsReadOnlyFirst = false; uiIdioma.LabelVisible = true; uiIdioma.LabelTextWidth = UiConstants.LabelTextWidthDefault; uiIdioma.DataFieldFirst = "IDIOMA_PR1"; uiIdioma.DataField = "IDIOMA_PR1"; uiIdioma.ItemSource = new DataTable(); uiIdioma.SourceView = new DataTable(); uiIdioma.OnAssistQuery += assistQuery; uiIdioma.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; uiIdioma.TextContentSecondWidth = UiConstants.TextBoxWidthDefault; uiIdiomaDivisDfObject.AddDataField(uiIdioma); UiDualDfSearchTextObject uiDivisa = new UiDualDfSearchTextObject("Divisa", UiConstants.LabelTextWidthDefault); uiDivisa.ButtonImage = MasterModuleConstants.ImagePath; uiDivisa.AssistDataFieldFirst = "CODIGO"; uiDivisa.AssistDataFieldSecond = "NOMBRE"; uiDivisa.AssistTableName = "DIVISAS"; uiDivisa.Height = UiConstants.TextboxHeight; uiDivisa.IsVisible = true; uiDivisa.PrimaryKey = "NUM_PROVEE"; uiDivisa.TableName = "PROVEE2"; uiDivisa.OnChangedField += changedField; uiDivisa.IsReadOnlySecond = true; uiDivisa.IsReadOnlyFirst = false; uiDivisa.LabelVisible = true; uiDivisa.LabelTextWidth = UiConstants.LabelTextWidthDefault; uiDivisa.DataFieldFirst = "DIVISA"; uiDivisa.DataField = "DIVISA"; uiDivisa.ItemSource = new DataTable(); uiDivisa.SourceView = new DataTable(); uiDivisa.OnAssistQuery += assistQuery; uiIdiomaDivisDfObject.AddDataField(uiDivisa); invoicingObjects.Add(uiIdiomaDivisDfObject); return(invoicingObjects); }
public ObservableCollection <IUiObject> LoadAccounts(UiDualDfSearchTextObject.OnAssistQueryRequestHandler assistQuery, UiDfObject.ChangedField changedField) { ObservableCollection <IUiObject> observableCollection = new ObservableCollection <IUiObject>(); UiMultipleDfObject accountDfObject1 = new UiMultipleDfObject(); UiDfObject prefixDfObject = new UiDfObject(Resources.Prefijo, UiConstants.LabelTextWidthDefault); prefixDfObject.DataField = "PREFIJO"; prefixDfObject.TableName = "PROVEE2"; prefixDfObject.LabelVisible = true; prefixDfObject.Height = UiConstants.TextboxHeight; prefixDfObject.TextContentWidth = UiConstants.TextBoxWidthSmall; prefixDfObject.OnChangedField += changedField; prefixDfObject.PrimaryKey = "NUM_PROVEE"; prefixDfObject.AllowedEmpty = true; prefixDfObject.ItemSource = new DataTable(); accountDfObject1.AddDataField(prefixDfObject); UiDualDfSearchTextObject cuentaContable = new UiDualDfSearchTextObject("Cuenta Contable", UiConstants.LabelTextWidthDefault); cuentaContable.DataFieldFirst = "CONTABLE"; cuentaContable.TableName = "PROVEE2"; cuentaContable.AssistTableName = "CU1"; cuentaContable.AssistDataFieldFirst = "CODIGO"; cuentaContable.AssistDataFieldSecond = "DESCRIP"; cuentaContable.Height = UiConstants.TextboxHeight; cuentaContable.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; cuentaContable.TextContentSecondWidth = UiConstants.TextBoxWidthLarge; cuentaContable.SourceView = new DataTable(); cuentaContable.ItemSource = new DataTable(); cuentaContable.PrimaryKey = "NUM_PROVEE"; cuentaContable.OnChangedField += changedField; cuentaContable.ButtonImage = MasterModuleConstants.ImagePath; cuentaContable.DataField = "CONTABLE"; cuentaContable.OnAssistQuery += assistQuery; accountDfObject1.AddDataField(cuentaContable); observableCollection.Add(accountDfObject1); UiDualDfSearchTextObject cuentaGasto = new UiDualDfSearchTextObject("Cuenta Gasto", UiConstants.LabelTextWidthDefault); cuentaGasto.DataFieldFirst = "CUGASTO"; cuentaGasto.TableName = "PROVEE2"; cuentaGasto.AssistTableName = "CU1"; cuentaGasto.AssistDataFieldFirst = "CODIGO"; cuentaGasto.AssistDataFieldSecond = "DESCRIP"; cuentaGasto.Height = UiConstants.TextboxHeight; cuentaGasto.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; cuentaGasto.TextContentSecondWidth = UiConstants.TextBoxWidthLarge; cuentaGasto.SourceView = new DataTable(); cuentaGasto.ItemSource = new DataTable(); cuentaGasto.PrimaryKey = "NUM_PROVEE"; cuentaGasto.OnChangedField += changedField; cuentaGasto.ButtonImage = MasterModuleConstants.ImagePath; cuentaGasto.DataField = "CONTABLE"; cuentaGasto.OnAssistQuery += assistQuery; observableCollection.Add(cuentaGasto); // cuenta retencion UiDualDfSearchTextObject retentionAccount = new UiDualDfSearchTextObject("Cuenta Retencion", UiConstants.LabelTextWidthDefault); retentionAccount.DataFieldFirst = "RETENCION"; retentionAccount.TableName = "PROVEE2"; retentionAccount.AssistTableName = "CU1"; retentionAccount.AssistDataFieldFirst = "CODIGO"; retentionAccount.AssistDataFieldSecond = "DESCRIP"; retentionAccount.Height = UiConstants.TextboxHeight; retentionAccount.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; retentionAccount.TextContentSecondWidth = UiConstants.TextBoxWidthLarge; retentionAccount.SourceView = new DataTable(); retentionAccount.ItemSource = new DataTable(); retentionAccount.PrimaryKey = "NUM_PROVEE"; retentionAccount.OnChangedField += changedField; retentionAccount.ButtonImage = MasterModuleConstants.ImagePath; retentionAccount.DataField = "CONTABLE"; retentionAccount.OnAssistQuery += assistQuery; observableCollection.Add(retentionAccount); // cuenta pago UiDualDfSearchTextObject cuentaPago = new UiDualDfSearchTextObject("Cuenta Pago", UiConstants.LabelTextWidthDefault); cuentaPago.DataFieldFirst = "CTAPAGO"; cuentaPago.TableName = "PROVEE1"; cuentaPago.AssistTableName = "CU1"; cuentaPago.AssistDataFieldFirst = "CODIGO"; cuentaPago.AssistDataFieldSecond = "DESCRIP"; cuentaPago.Height = UiConstants.TextboxHeight; cuentaPago.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; cuentaPago.TextContentSecondWidth = UiConstants.TextBoxWidthLarge; cuentaPago.SourceView = new DataTable(); cuentaPago.ItemSource = new DataTable(); cuentaPago.PrimaryKey = "NUM_PROVEE"; cuentaPago.OnChangedField += changedField; cuentaPago.ButtonImage = MasterModuleConstants.ImagePath; cuentaPago.DataField = "CTAPAGO"; cuentaPago.OnAssistQuery += assistQuery; observableCollection.Add(cuentaPago); return(observableCollection); }
private ObservableCollection <IUiObject> LoadDirections(ref UiDualDfSearchTextObject.OnAssistQueryRequestHandler assistQuery, ref UiDfObject.ChangedField changedField, IDictionary <string, string> dataDictionary) { ObservableCollection <IUiObject> collection = new ObservableCollection <IUiObject>(); UiDfObject direccionDePago = new UiDfObject("Dirección", UiConstants.LabelTextWidthDefault); direccionDePago.DataField = dataDictionary[FirstDirectionDf]; direccionDePago.TableName = dataDictionary[FirstTableDirectionDf];; direccionDePago.LabelTextWidth = UiConstants.LabelTextWidthDefault; direccionDePago.LabelVisible = true; direccionDePago.Height = UiConstants.TextboxHeight; direccionDePago.TextContentWidth = UiConstants.TextBoxWidthWide; direccionDePago.OnChangedField += changedField; direccionDePago.ItemSource = new DataTable(); direccionDePago.PrimaryKey = "NUM_PROVEE"; direccionDePago.AllowedEmpty = true; collection.Add(direccionDePago); UiDfObject direccionDePago1 = new UiDfObject("Segunda Dirección", UiConstants.LabelTextWidthDefault); direccionDePago1.DataField = dataDictionary[SecondDirectionDf]; direccionDePago1.TableName = dataDictionary[SecondTableDirectionDf]; direccionDePago1.LabelTextWidth = UiConstants.LabelTextWidthDefault; direccionDePago1.LabelVisible = true; direccionDePago1.Height = UiConstants.TextboxHeight; direccionDePago1.TextContentWidth = UiConstants.TextBoxWidthDefault; direccionDePago1.OnChangedField += changedField; direccionDePago1.ItemSource = new DataTable(); direccionDePago1.PrimaryKey = "NUM_PROVEE"; direccionDePago1.AllowedEmpty = true; collection.Add(direccionDePago1); UiDualDfSearchTextObject dualDfSearch = new UiDualDfSearchTextObject("CP", UiConstants.LabelTextWidthDefault); dualDfSearch.DataFieldFirst = dataDictionary[CpDataField]; dualDfSearch.DataField = dataDictionary[CpDataField]; dualDfSearch.ButtonImage = UiConstants.ImagePath; dualDfSearch.TableName = dataDictionary[CpTableName]; dualDfSearch.AssistDataFieldFirst = CpAssistDataFieldFirst; dualDfSearch.AssistDataFieldSecond = CpAssistDataFieldSecond; dualDfSearch.AssistTableName = "PROVEE1"; dualDfSearch.Height = UiConstants.TextboxHeight; dualDfSearch.IsReadOnlySecond = true; dualDfSearch.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; dualDfSearch.TextContentSecondWidth = UiConstants.TextBoxWidthLarge; dualDfSearch.SourceView = new DataTable(); dualDfSearch.ItemSource = new DataTable(); dualDfSearch.PrimaryKey = "NUM_PROVEE"; dualDfSearch.OnChangedField += changedField; dualDfSearch.OnAssistQuery += assistQuery; collection.Add(dualDfSearch); UiDualDfSearchTextObject provDfSearchTextObject = new UiDualDfSearchTextObject("Provincia", UiConstants.LabelTextWidthDefault); provDfSearchTextObject.DataFieldFirst = dataDictionary[ProvDataField]; provDfSearchTextObject.ButtonImage = UiConstants.ImagePath; provDfSearchTextObject.TableName = dataDictionary[ProvTableName]; provDfSearchTextObject.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; provDfSearchTextObject.TextContentSecondWidth = UiConstants.TextBoxWidthLarge; provDfSearchTextObject.AssistDataFieldFirst = dataDictionary[ProvAssistDataFieldFirst]; provDfSearchTextObject.AssistDataFieldSecond = dataDictionary[ProvAssistDataFieldSecond]; provDfSearchTextObject.IsReadOnlySecond = true; provDfSearchTextObject.AssistTableName = "PROVINCIA"; provDfSearchTextObject.SourceView = new DataTable(); provDfSearchTextObject.ItemSource = new DataTable(); provDfSearchTextObject.PrimaryKey = "NUM_PROVEE"; provDfSearchTextObject.OnChangedField += changedField; provDfSearchTextObject.OnAssistQuery += assistQuery; collection.Add(provDfSearchTextObject); UiDualDfSearchTextObject paisDfSearchTextObject = new UiDualDfSearchTextObject("Pais", UiConstants.LabelTextWidthDefault); paisDfSearchTextObject.DataFieldFirst = dataDictionary[PaisDataField]; paisDfSearchTextObject.ButtonImage = UiConstants.ImagePath; paisDfSearchTextObject.TableName = dataDictionary[PaisTableName]; paisDfSearchTextObject.AssistDataFieldFirst = "SIGLAS"; paisDfSearchTextObject.AssistDataFieldSecond = "PAIS"; paisDfSearchTextObject.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; paisDfSearchTextObject.TextContentSecondWidth = UiConstants.TextBoxWidthLarge; paisDfSearchTextObject.IsReadOnlySecond = true; paisDfSearchTextObject.AssistTableName = "PAIS"; paisDfSearchTextObject.SourceView = new DataTable(); paisDfSearchTextObject.ItemSource = new DataTable(); paisDfSearchTextObject.PrimaryKey = "NUM_PROVEE"; paisDfSearchTextObject.OnChangedField += changedField; paisDfSearchTextObject.OnAssistQuery += assistQuery; collection.Add(paisDfSearchTextObject); UiMultipleDfObject multipleDfObject = new UiMultipleDfObject(); // Data Field object 1 UiDfObject dfObject1 = new UiDfObject("Telefonos", UiConstants.LabelTextWidthDefault); dfObject1.DataField = dataDictionary[TelefonoDataField]; dfObject1.TableName = dataDictionary[TelefonoTableName]; dfObject1.LabelTextWidth = UiConstants.LabelTextWidthDefault; dfObject1.LabelVisible = true; dfObject1.Height = UiConstants.TextboxHeight; dfObject1.TextContentWidth = UiConstants.TextBoxWidthDefault; dfObject1.OnChangedField += changedField; dfObject1.ItemSource = new DataTable(); dfObject1.PrimaryKey = "NUM_PROVEE"; dfObject1.AllowedEmpty = true; // Data field object 2 UiDfObject dfObject2 = new UiDfObject("Fax", UiConstants.LabelTextWidthDefault); dfObject2.DataField = dataDictionary[FaxDataField]; dfObject2.TableName = dataDictionary[FaxTableName]; dfObject2.LabelTextWidth = UiConstants.LabelTextWidthDefault; dfObject2.LabelVisible = true; dfObject2.Height = UiConstants.TextboxHeight; dfObject2.TextContentWidth = UiConstants.TextBoxWidthDefault; dfObject2.OnChangedField += changedField; dfObject2.ItemSource = new DataTable(); dfObject2.PrimaryKey = "NUM_PROVEE"; dfObject2.AllowedEmpty = true; multipleDfObject.AddDataField(dfObject1); multipleDfObject.AddDataField(dfObject2); collection.Add(multipleDfObject); // data field persona. UiDfObject dfPersona = new UiDfObject("Persona", UiConstants.LabelTextWidthDefault); dfPersona.DataField = dataDictionary[PersonaDataField]; dfPersona.TableName = dataDictionary[PersonaTableName]; dfPersona.LabelTextWidth = UiConstants.LabelTextWidthDefault; dfPersona.LabelVisible = true; dfPersona.Height = UiConstants.TextboxHeight; dfPersona.TextContentWidth = UiConstants.TextBoxWidthDefault; dfPersona.OnChangedField += changedField; dfPersona.ItemSource = new DataTable(); dfPersona.PrimaryKey = "NUM_PROVEE"; dfPersona.AllowedEmpty = true; collection.Add(dfPersona); UiEmailDataField dfEmail = new UiEmailDataField(); dfEmail.LabelText = "Email"; dfEmail.ButtonImage = UiConstants.EmailImagePath; dfEmail.DataField = dataDictionary[EmailDataField]; dfEmail.TableName = dataDictionary[EmailTableName]; dfEmail.LabelTextWidth = UiConstants.LabelTextWidthDefault; dfEmail.LabelVisible = true; dfEmail.Height = UiConstants.TextboxHeight; dfEmail.TextContentWidth = UiConstants.TextBoxWidthDefault; dfEmail.OnChangedField += changedField; dfEmail.ItemSource = new DataTable(); dfEmail.PrimaryKey = "NUM_PROVEE"; dfEmail.AllowedEmpty = true; collection.Add(dfEmail); return(collection); }
private ObservableCollection <IUiObject> OrderCommunicationWay(UiDualDfSearchTextObject.OnAssistQueryRequestHandler assistQuery, UiDfObject.ChangedField changedField) { ObservableCollection <IUiObject> collection = new ObservableCollection <IUiObject>(); UiDualDfSearchTextObject viaDfSearch = new UiDualDfSearchTextObject(Resources.OrderCommunicationWay_Via, UiConstants.LabelTextWidthDefault); viaDfSearch.DataFieldFirst = "VIA"; viaDfSearch.TableName = "PROVEE1"; viaDfSearch.AssistDataFieldFirst = "NOMBRE"; viaDfSearch.AssistDataFieldSecond = "CODIGO"; viaDfSearch.AssistTableName = "VIASPEDIPRO"; viaDfSearch.ButtonImage = UiConstants.ImagePath; viaDfSearch.Height = UiConstants.TextboxHeight; viaDfSearch.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; viaDfSearch.TextContentSecondWidth = UiConstants.TextBoxWidthLarge; viaDfSearch.SourceView = new DataTable(); viaDfSearch.ItemSource = new DataTable(); viaDfSearch.PrimaryKey = "NUM_PROVEE"; viaDfSearch.OnChangedField += changedField; viaDfSearch.OnAssistQuery += assistQuery; // UiDfObject direccionDePago = new UiDfObject(title, UiConstants.LabelTextWidthDefault); collection.Add(viaDfSearch); UiEmailDataField emailDfSearch = new UiEmailDataField(); emailDfSearch.LabelText = "Email"; emailDfSearch.LabelTextWidth = UiConstants.LabelTextWidthDefault; emailDfSearch.TextContentWidth = UiConstants.TextBoxWidthDefault; emailDfSearch.DataField = "EMAIL"; emailDfSearch.ButtonImage = UiConstants.EmailImagePath; emailDfSearch.TableName = "PROVEE1"; emailDfSearch.Height = UiConstants.TextboxHeight; emailDfSearch.ItemSource = new DataTable(); emailDfSearch.PrimaryKey = "NUM_PROVEE"; emailDfSearch.OnChangedField += changedField; emailDfSearch.EmailEventHandler += _emailCheckHandler; collection.Add(emailDfSearch); UiDualDfSearchTextObject fechaEntregaDfSearch = new UiDualDfSearchTextObject("F.Entrega", UiConstants.LabelTextWidthDefault); fechaEntregaDfSearch.DataFieldFirst = "FORMA_ENVIO"; fechaEntregaDfSearch.ButtonImage = UiConstants.ImagePath; fechaEntregaDfSearch.TableName = "PROVEE1"; fechaEntregaDfSearch.AssistDataFieldFirst = "NOMBRE"; fechaEntregaDfSearch.AssistDataFieldSecond = "CODIGO"; fechaEntregaDfSearch.AssistTableName = "FORMAS_PEDENT"; fechaEntregaDfSearch.Height = UiConstants.TextboxHeight; fechaEntregaDfSearch.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; fechaEntregaDfSearch.TextContentSecondWidth = UiConstants.TextBoxWidthLarge; fechaEntregaDfSearch.SourceView = new DataTable(); fechaEntregaDfSearch.ItemSource = new DataTable(); fechaEntregaDfSearch.PrimaryKey = "NUM_PROVEE"; fechaEntregaDfSearch.OnChangedField += changedField; fechaEntregaDfSearch.OnAssistQuery += assistQuery; // UiDfObject direccionDePago = new UiDfObject(title, UiConstants.LabelTextWidthDefault); collection.Add(fechaEntregaDfSearch); UiDualDfSearchTextObject sellConditionDfSearch = new UiDualDfSearchTextObject("Condición Venta", UiConstants.LabelTextWidthDefault); sellConditionDfSearch.DataFieldFirst = "CONDICION_VENTA"; sellConditionDfSearch.ButtonImage = UiConstants.ImagePath; sellConditionDfSearch.TableName = "PROVEE1"; sellConditionDfSearch.AssistDataFieldFirst = "NOMBRE"; sellConditionDfSearch.AssistDataFieldSecond = "CODIGO"; sellConditionDfSearch.AssistTableName = "TL_CONDICION_PRECIO"; sellConditionDfSearch.Height = UiConstants.TextboxHeight; sellConditionDfSearch.TextContentFirstWidth = UiConstants.TextBoxWidthSmall; sellConditionDfSearch.TextContentSecondWidth = UiConstants.TextBoxWidthLarge; sellConditionDfSearch.SourceView = new DataTable(); sellConditionDfSearch.ItemSource = new DataTable(); sellConditionDfSearch.PrimaryKey = "NUM_PROVEE"; sellConditionDfSearch.OnChangedField += changedField; sellConditionDfSearch.OnAssistQuery += assistQuery; // UiDfObject direccionDePago = new UiDfObject(title, UiConstants.LabelTextWidthDefault); collection.Add(sellConditionDfSearch); UiDataArea deliveringArea = new UiDataArea(); deliveringArea.LabelVisible = true; deliveringArea.LabelTextWidth = UiConstants.LabelTextWidthWide; deliveringArea.PrimaryKey = ProviderConstants.PrimaryKey; deliveringArea.ItemSource = new DataTable(); deliveringArea.LabelText = "Lugares de Entrega"; deliveringArea.DataField = "DIRENVIO6"; deliveringArea.TableName = "PROVEE1"; deliveringArea.Height = UiConstants.TextboxHeight; deliveringArea.TextContentWidth = UiConstants.TextBoxWidthDefault; collection.Add(deliveringArea); return(collection); }