Ejemplo n.º 1
0
        public frmDocumentos(int _idDocument, bool _readOnly)
        {
            InitializeComponent();
            ReadOnly = _readOnly;
            dgvDatos.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.TemplateOnBottom;
            //  I  N  I  C  I  A  L  I  Z  A  R
            //dgvDatos.DataSource = _details;
            IdDocument          = _idDocument;
            config              = new Configuracion.SDK_Configuracion_Document(IdDocument, this);
            config.ModeDocument = "Edit";
            config.StartEmpty();
            IVA = config.IVA1;
            this.AccessibleDescription = "SDK " + this.Text;
            this.btnCrear.Text         = "Actualizar";
            this.CleanScreen();

            txtCardCode.ReadOnly = false;
            txtCardCode.Enabled  = true;

            txtCardName.ReadOnly = false;
            txtCardName.Enabled  = true;

            txtFolio.BackColor     = Color.FromName("Info");
            txtCardCode.BackColor  = Color.FromName("Info");
            txtCardName.BackColor  = Color.FromName("Info");
            txtNumAtCard.BackColor = Color.FromName("Info");

            cerrarStripButton.Enabled            = true;
            nuevoToolStripButton.Enabled         = false;
            cerrarLíneaToolStripMenuItem.Enabled = true;
        }
Ejemplo n.º 2
0
 public frmDocumentos(DataTable _details, int _idDocument, string _cardCode)
 {
     InitializeComponent();
     dgvDatos.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.TemplateOnBottom;
     //  I  N  I  C  I  A  L  I  Z  A  R
     IdDocument          = _idDocument;
     config              = new Configuracion.SDK_Configuracion_Document(IdDocument, this);
     config.ModeDocument = "New";
     config.StartFill(IdDocument, _details, _cardCode);
     IVA      = config.IVA1;
     VatGroup = config.VatGroup;
     this.AccessibleDescription   = "SDK " + this.Text;
     this.btnCrear.Text           = "Crear";
     nuevoToolStripButton.Enabled = false;
 }
Ejemplo n.º 3
0
        public frmDocumentos(int _idDocument, decimal _DocKey, int _ObjType, decimal _WtmCode, decimal _WddCode)
        {
            InitializeComponent();
            typeDocument = "Borrador";
            DocumentSAP  = new SDK_SAP.Clases.Document();
            dgvDatos.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.TemplateOnBottom;
            //  I  N  I  C  I  A  L  I  Z  A  R
            IdDocument          = _idDocument;
            config              = new SDK.Configuracion.SDK_Configuracion_Document(IdDocument, this);
            config.ModeDocument = "New";
            config.StartEmpty();
            IVA = config.IVA1;
            this.AccessibleDescription = "SDK " + this.Text;

            txtFolio.Text = _DocKey.ToString();
            DocKey        = _DocKey;
            ObjType       = _ObjType;
            WtmCode       = _WtmCode;
            WddCode       = _WddCode;
        }