protected virtual void SetStockFormat(moleQule.Store.Structs.ETipoExpediente tipo) { switch (tipo) { case moleQule.Store.Structs.ETipoExpediente.Alimentacion: Stock_DGW.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders; break; case moleQule.Store.Structs.ETipoExpediente.Ganado: //Tabla Stock break; case moleQule.Store.Structs.ETipoExpediente.Maquinaria: //Tabla Stock break; case moleQule.Store.Structs.ETipoExpediente.Todos: break; } }
protected virtual void SetPartidasFormat(moleQule.Store.Structs.ETipoExpediente tipo) { PCKgPartida.DefaultCellStyle.Format = "N" + Library.Invoice.ModulePrincipal.GetNDecimalesPreciosSetting(); PCUdPartida.DefaultCellStyle.Format = "N" + Library.Invoice.ModulePrincipal.GetNDecimalesPreciosSetting(); AyudaKgPartida.DefaultCellStyle.Format = "N" + Library.Invoice.ModulePrincipal.GetNDecimalesPreciosSetting(); CosteKgPartida.DefaultCellStyle.Format = "N" + Library.Invoice.ModulePrincipal.GetNDecimalesPreciosSetting(); GastoKgPartida.DefaultCellStyle.Format = "N" + Library.Invoice.ModulePrincipal.GetNDecimalesPreciosSetting(); switch (tipo) { case moleQule.Store.Structs.ETipoExpediente.Alimentacion: PCKgPartida.DefaultCellStyle.Format = "N5"; PCUdPartida.DefaultCellStyle.Format = "N2"; AyudaKgPartida.DefaultCellStyle.Format = "N5"; CosteKgPartida.DefaultCellStyle.Format = "N5"; GastoKgPartida.DefaultCellStyle.Format = "N5"; break; case moleQule.Store.Structs.ETipoExpediente.Ganado: //Tabla Stock break; case moleQule.Store.Structs.ETipoExpediente.Maquinaria: //Tabla Stock break; case moleQule.Store.Structs.ETipoExpediente.Todos: break; } }
public ExpedienteForm(long oid, moleQule.Store.Structs.ETipoExpediente tipo, bool is_modal, Form parent) : base(oid, new object[1] { tipo }, is_modal, parent) { InitializeComponent(); CancelConfirmation = false; }
public ContenedorUIForm(long oid, moleQule.Store.Structs.ETipoExpediente tipo, Form parent) : base(oid, tipo, true, parent) { InitializeComponent(); if (_entity != null) { _entity.PropertyChanged += new PropertyChangedEventHandler(Entity_PropertyChanged); } }
private void Expediente_BT_Click(object sender, EventArgs e) { ExpedienteSelectForm form = new ExpedienteSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { _expediente = form.Selected as ExpedientInfo; _tipo_expediente = moleQule.Store.Structs.ETipoExpediente.Todos; Expediente_TB.Text = _expediente.Codigo; } }
protected override void PrintAction() { PgMng.Reset(4, 1, Face.Resources.Messages.RETRIEVING_DATA, this); if (!TodosExpediente_CkB.Checked && (_expediente == null)) { return; } if (!TodosProducto_CkB.Checked && (_producto == null)) { return; } ProductInfo producto = TodosProducto_CkB.Checked ? null : _producto; moleQule.Store.Structs.ETipoExpediente tipo = !TodosExpediente_CkB.Checked ? _expediente.ETipo : ETipoExpediente; ExpedientInfo expediente = TodosExpediente_CkB.Checked ? null : _expediente; DateTime fecha = FFinal_DTP.Checked ? FFinal_DTP.Value : DateTime.Today; InventarioValoradoList list; string filtro = GetFilterValues(); PgMng.Grow(); //if (Stock_CkB.Checked) list = InventarioValoradoList.GetListStock(tipo, expediente, fecha); //else //list = InventarioValoradoList.GetList(producto, tipo, expediente, fecha); PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT); ProductReportMng reportMng = new ProductReportMng(AppContext.ActiveSchema, string.Empty, filtro); InventarioValoradoRpt rpt = reportMng.GetInventarioValoradoReport(list, fecha); PgMng.FillUp(); if (rpt != null) { ReportViewer.SetReport(rpt); ReportViewer.ShowDialog(); } else { MessageBox.Show(moleQule.Face.Resources.Messages.NO_DATA_REPORTS, moleQule.Face.Resources.Labels.ADVISE_TITLE, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } _action_result = DialogResult.Ignore; }
public ContenedorViewForm(long oid, moleQule.Store.Structs.ETipoExpediente tipo, Form parent) : base(oid, tipo, true, parent) { InitializeComponent(); SetFormData(); switch (tipo) { case moleQule.Store.Structs.ETipoExpediente.Alimentacion: this.Text = String.Format(Resources.Labels.CONTAINER_TITLE, _entity.Codigo); break; default: this.Text = String.Format(Resources.Labels.EXPEDIENT_TITLE, _entity.Codigo); break; } _mf_type = ManagerFormType.MFView; }
protected virtual void SetBeneficiosFormat(moleQule.Store.Structs.ETipoExpediente tipo) { BePCUd.DefaultCellStyle.Format = "N" + Library.Invoice.ModulePrincipal.GetNDecimalesPreciosSetting(); //BePCUdSupplier.DefaultCellStyle.Format = "N" + Library.Invoice.ModulePrincipal.GetNDecimalesPreciosSetting(); BePVUd.DefaultCellStyle.Format = "N" + Library.Invoice.ModulePrincipal.GetNDecimalesPreciosSetting(); BePCKg.DefaultCellStyle.Format = "N" + Library.Invoice.ModulePrincipal.GetNDecimalesPreciosSetting(); BePCKgSupplier.DefaultCellStyle.Format = "N" + Library.Invoice.ModulePrincipal.GetNDecimalesPreciosSetting(); BePVKg.DefaultCellStyle.Format = "N" + Library.Invoice.ModulePrincipal.GetNDecimalesPreciosSetting(); switch (tipo) { case moleQule.Store.Structs.ETipoExpediente.Alimentacion: break; case moleQule.Store.Structs.ETipoExpediente.Ganado: //Tabla Beneficios BePCKg.Visible = false; BePCKgSupplier.Visible = false; BePVKg.Visible = false; break; case moleQule.Store.Structs.ETipoExpediente.Maquinaria: //Tabla Beneficios BePCKg.Visible = false; BePCKgSupplier.Visible = false; BePVKg.Visible = false; break; case moleQule.Store.Structs.ETipoExpediente.Todos: break; } }
public ExpedienteForm(long oid, moleQule.Store.Structs.ETipoExpediente tipo) : this(oid, tipo, true, null) { }
public ContenedorViewForm(long oid, moleQule.Store.Structs.ETipoExpediente tipo) : this(oid, tipo, null) { }