예제 #1
0
        protected override void SetRowFormat(DataGridViewRow row)
        {
            if (!row.Displayed)
            {
                return;
            }
            if (row.IsNewRow)
            {
                return;
            }

            BankLineInfo item = row.DataBoundItem as BankLineInfo;

            Tabla.SuspendLayout();

            Face.Common.ControlTools.Instance.SetRowColor(row, item.Auditado ? EEstado.Auditado : item.EEstado);

            if (item.EEstado == EEstado.Anulado)
            {
                return;
            }

            row.Cells[Importe.Name].Style.ForeColor = (item.Importe > 0) ? Face.Common.ControlTools.Instance.AbiertoStyle.ForeColor : Color.Red;
            row.Cells[Saldo.Name].Style.ForeColor   = (item.Saldo > 0) ? Face.Common.ControlTools.Instance.AbiertoStyle.ForeColor : Color.Red;

            Tabla.ResumeLayout();
        }
 public BankLineViewForm(BankLineInfo source, Form parent)
     : base(source.Oid, true, parent)
 {
     InitializeComponent();
     SetFormData(source);
     this.Text = ": " + EntityInfo.Codigo;
     _mf_type  = ManagerFormType.MFView;
 }
 public BankLineEditForm(BankLineInfo item, Form parent)
     : base(item.Oid, true, parent)
 {
     InitializeComponent();
     SetFormData(item);
     this.Text += ": " + Entity.Codigo;
     _mf_type   = ManagerFormType.MFEdit;
 }
 public void SetFormData(BankLineInfo source)
 {
     _entity = BankLineInfo.Get(source.Oid, source.ETipoMovimientoBanco, source.ETipoTitular);
     base.SetFormData();
 }
 public BankLineViewForm(BankLineInfo source)
     : this(source, null)
 {
 }
 public BankLineEditForm(BankLineInfo item)
     : this(item, null)
 {
 }