Esempio n. 1
0
        public void LiquidateBill()
        {
            var oResult = XtraMessageBox.Show("Seguro que desea dar por liquidada la factura?", "Sistema", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if (oResult == DialogResult.Yes)
            {
                var oBr = new BRSVTC_COTI();
                var oBe = new BESVTC_COTI();

                try
                {
                    if (string.IsNullOrEmpty(txtNUM_NCRE.Text))
                        throw new ArgumentException("Seleccione una factura.");
                    oBe.COD_COTI = Convert.ToInt32(txtNUM_NCRE.Text);
                    oBe.COD_USUA_MODI = SESSION_USER;
                    oBe.NUM_ACCI = 4;
                    oBr.Set_SVPR_DOCU_ESTA(oBe);
                    chkIND_LIQU.Checked = true;
                }
                catch (Exception ex)
                {
                    XtraMessageBox.Show(ex.Message, "Sistema", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }
Esempio n. 2
0
        public void Annul()
        {
            var oResult = XtraMessageBox.Show("Seguro que desea anular la orden de compra?", "Sistema", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if (oResult == DialogResult.Yes)
            {
                var oBr = new BRSVTC_COTI();
                var oBe = new BESVTC_COTI();

                try
                {
                    if (string.IsNullOrEmpty(txtCOD_ORCO.Text))
                        throw new ArgumentException("Seleccione una orden de compra.");
                    oBe.COD_COTI = Convert.ToInt32(txtCOD_ORCO.Text);
                    oBe.COD_USUA_MODI = SESSION_USER;
                    oBe.NUM_ACCI = 5;
                    oBr.Set_SVPR_DOCU_ESTA(oBe);
                    lkeIND_ESTA.EditValue = "AN";
                }
                catch (Exception ex)
                {
                    XtraMessageBox.Show(ex.Message, "Sistema", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }