コード例 #1
0
ファイル: xfQuote.cs プロジェクト: isvelarder/sispeper
        public void SearchQuote()
        {
            ClearControl();
            using (var oForm = new xfSearchQuote(1,SESSION_COMP))
            {
                if (oForm.ShowDialog() == DialogResult.OK)
                {
                    LoadBranch(oForm.oBe.COD_SOCI_NEGO);
                    txtCOD_SOCI_NEGO.Text = oForm.oBe.COD_SOCI_NEGO.ToString();
                    beALF_NOMB.Text = oForm.oBe.ALF_NOMB;
                    txtALF_DIRE_FISC.Text = oForm.oBe.ALF_DIRE;
                    txtALF_TELE.Text = "";
                    txtALF_FAXX.Text = "";
                    txtALF_CONT.Text = oForm.oBe.ALF_CONT;
                    lueCOD_SUCU.EditValue = oForm.oBe.COD_SUCU;
                    txtNUM_DESC.Text = oForm.oBe.NUM_DESC.ToString("#,##0.00");
                    txtNUM_COTI.Text = oForm.oBe.COD_COTI.ToString();
                    deFEC_REGI.EditValue = oForm.oBe.FEC_REGI;
                    deFEC_DOCU.EditValue = oForm.oBe.FEC_DOCU;
                    deFEC_VENC.EditValue = oForm.oBe.FEC_VENC;
                    txtALF_ESTA.Text = oForm.oBe.ALF_ESTA;
                    lueCOD_MONE.EditValue = oForm.oBe.COD_MONE;
                    lueCOD_PROY.EditValue = oForm.oBe.COD_PROY;
                    ALF_EJEC_COME = oForm.oBe.ALF_EJEC_COME;
                    txtALF_ATEN.Text = oForm.oBe.ALF_ATEN;
                    lkeCOD_MOTI.EditValue = oForm.oBe.COD_MOTI;
                    mmoALF_COND_COME.Text = oForm.oBe.ALF_COND_COME;
                    lueCOD_EJEC_COME.EditValue = oForm.oBe.COD_EJEC_COME;
                    chkIGV.Checked = oForm.oBe.IND_IMPU;

                    meALF_OBSE.Text = oForm.oBe.ALF_OBSE;
                    lblALF_SONN.Text = oForm.oBe.ALF_TOTA;

                    txtNUM_SUBT.Text = oForm.oBe.NUM_SUBT.ToString("#,##0.00");
                    txtNUM_IGVV.Text = oForm.oBe.NUM_IGVV.ToString("#,##0.00");
                    txtNUM_TOTA.Text = oForm.oBe.NUM_TOTA.ToString("#,##0.00");

                    var oBe = new BESVTD_COTI();
                    var oBr = new BRSVTD_COTI();

                    oBe.COD_COTI = oForm.oBe.COD_COTI;
                    oBe.NUM_ACCI = 5;
                    oBe.COD_TIPO_DOCU = 1;
                    var oList = oBr.Get_SVPR_COTI_DETA_LIST(oBe);

                    oList.ForEach(obj =>
                    {
                        oListArti.Add(obj);
                    });
                    gdvArticles.RefreshData();

                    var oBeG = new BESVTD_COTI_GROU();
                    var oBrG = new BRSVTD_COTI_GROU();

                    oBeG.COD_COTI = oForm.oBe.COD_COTI;
                    oBeG.NUM_ACCI = 5;
                    oBeG.COD_TIPO_DOCU = 1;
                    var oListG = oBrG.Get_SVPR_COTI_GROU_LIST(oBeG);

                    oListG.ForEach(obj =>
                    {
                        oListGroup.Add(obj);
                    });
                    gdvGroups.RefreshData();

                    var oBeDG = new BESVTD_COTI();
                    var oBrDG = new BRSVTD_COTI_GROU_DETA();

                    oBeDG.COD_COTI = oForm.oBe.COD_COTI;
                    oBeDG.NUM_ACCI = 5;
                    oBeDG.COD_TIPO_DOCU = 1;
                    var oListDG = oBrDG.Get_SVPR_COTI_GROU_DETA_LIST(oBeDG);

                    oListDG.ForEach(obj =>
                    {
                        oListArtiGroup.Add(obj);
                    });
                    gdvArticlesGroup.RefreshData();

                    var oBeTC = new BESVMD_SOCI_NEGO_SUCU();
                    var oBrTC = new BRSVMD_SOCI_NEGO_SUCU();

                    oBeTC.NUM_ACCI = 5;
                    oBeTC.COD_SOCI_NEGO = oForm.oBe.COD_SOCI_NEGO;
                    var oListTC = oBrTC.Get_SVPR_SOCI_NEGO_SUCU_LIST(oBeTC);

                    lueCOD_SUCU.Properties.DataSource = oListTC;
                    lueCOD_SUCU.Properties.Columns.Clear();
                    lueCOD_SUCU.Properties.Columns.Add(new LookUpColumnInfo("ALF_SUCU", 100, "Sucursal"));
                    lueCOD_SUCU.Properties.DisplayMember = "ALF_SUCU";
                    lueCOD_SUCU.Properties.ValueMember = "COD_SOCI_NEGO_SUCU";

                    lueCOD_SUCU.EditValue = oForm.oBe.COD_SUCU;
                }
            }
        }
コード例 #2
0
        /// <summary>
        /// INVOCAR EL CUADRO DE BUSQUEDA PARA LA NOTA DE CREDITO
        /// </summary>
        public void SearchSalesCreditNote()
        {
            ClearControl();
            using (var oForm = new xfSearchQuote(5, SESSION_COMP))
            {
                if (oForm.ShowDialog() == DialogResult.OK)
                {
                    LoadBranch(oForm.oBe.COD_SOCI_NEGO);
                    txtCOD_SOCI_NEGO.Text = oForm.oBe.COD_SOCI_NEGO.ToString();
                    beALF_NOMB.Text = oForm.oBe.ALF_NOMB;
                    txtALF_DIRE_FISC.Text = oForm.oBe.ALF_DIRE;
                    txtALF_TELE.Text = "";
                    txtALF_FAXX.Text = "";
                    txtALF_CONT.Text = oForm.oBe.ALF_CONT;
                    lueCOD_SUCU.EditValue = oForm.oBe.COD_SUCU;
                    txtNUM_DESC.Text = oForm.oBe.NUM_DESC.ToString("#,##0.00");
                    txtALF_NUME_FACT.Text = oForm.oBe.ALF_NUME_DOCU;
                    beALF_GUIA_REMI_STOR.Text = oForm.oBe.ALF_NUME_DOCU;
                    COD_DVEN = oForm.oBe.COD_DVEN;
                    txtNUM_NCRE.Text = oForm.oBe.COD_NCRE.ToString();
                    deFEC_REGI.EditValue = oForm.oBe.FEC_REGI;
                    deFEC_DOCU.EditValue = oForm.oBe.FEC_DOCU;
                    deFEC_VENC.EditValue = oForm.oBe.FEC_PAGO;
                    txtALF_ESTA.Text = oForm.oBe.ALF_ESTA;
                    lueCOD_MONE.EditValue = oForm.oBe.COD_MONE;
                    lueALF_SERI.EditValue = oForm.oBe.ALF_SERI;
                    txtNUM_CORR.Text = oForm.oBe.NUM_CORR.ToString("0000000");
                    lueCOD_ALMA.EditValue = oForm.oBe.COD_ALMA;
                    txtALF_NUME_IDEN.Text = oForm.oBe.ALF_NUME_IDEN;
                    chkIGV.Checked = oForm.oBe.IND_IMPU;
                    chkIND_LIQU.Checked = oForm.oBe.IND_LIQU;

                    meALF_OBSE.Text = oForm.oBe.ALF_OBSE;
                    lblALF_SONN.Text = oForm.oBe.ALF_TOTA;

                    txtNUM_SUBT.Text = oForm.oBe.NUM_SUBT.ToString("#,##0.00");
                    txtNUM_IGVV.Text = oForm.oBe.NUM_IGVV.ToString("#,##0.00");
                    txtNUM_TOTA.Text = oForm.oBe.NUM_TOTA.ToString("#,##0.00");

                    var oBeSu = new BESVMD_SOCI_NEGO_SUCU();
                    var oBrSu = new BRSVMD_SOCI_NEGO_SUCU();

                    oBeSu.NUM_ACCI = 5;
                    oBeSu.COD_SOCI_NEGO = oForm.oBe.COD_SOCI_NEGO;
                    var oListTC = oBrSu.Get_SVPR_SOCI_NEGO_SUCU_LIST(oBeSu);

                    lueCOD_SUCU.Properties.DataSource = oListTC;
                    lueCOD_SUCU.Properties.Columns.Clear();
                    lueCOD_SUCU.Properties.Columns.Add(new LookUpColumnInfo("ALF_SUCU", 100, "Sucursal"));
                    lueCOD_SUCU.Properties.DisplayMember = "ALF_SUCU";
                    lueCOD_SUCU.Properties.ValueMember = "COD_SOCI_NEGO_SUCU";
                    lueCOD_SUCU.EditValue = oForm.oBe.COD_SUCU;

                    var oBe = new BESVTD_COTI();
                    var oBr = new BRSVTD_COTI();

                    oBe.COD_COTI = oForm.oBe.COD_DVEN;
                    oBe.NUM_ACCI = 5;
                    oBe.COD_TIPO_DOCU = 4;
                    var oList = oBr.Get_SVPR_COTI_DETA_LIST(oBe);

                    oList.ForEach(obj =>
                    {
                        oListArti.Add(obj);
                    });
                    gdvArticles.RefreshData();

                    var oBeG = new BESVTD_COTI_GROU();
                    var oBrG = new BRSVTD_COTI_GROU();

                    oBeG.COD_COTI = oForm.oBe.COD_DVEN;
                    oBeG.NUM_ACCI = 5;
                    oBeG.COD_TIPO_DOCU = 4;
                    var oListG = oBrG.Get_SVPR_COTI_GROU_LIST(oBeG);

                    oListG.ForEach(obj =>
                    {
                        oListGroup.Add(obj);
                    });
                    gdvGroups.RefreshData();

                    var oBeDG = new BESVTD_COTI();
                    var oBrDG = new BRSVTD_COTI_GROU_DETA();

                    oBeDG.COD_COTI = oForm.oBe.COD_DVEN;
                    oBeDG.NUM_ACCI = 5;
                    oBeDG.COD_TIPO_DOCU = 4;
                    var oListDG = oBrDG.Get_SVPR_COTI_GROU_DETA_LIST(oBeDG);

                    oListDG.ForEach(obj =>
                    {
                        oListArtiGroup.Add(obj);
                    });
                    ListArticleCompletedUpdate();
                    gdvArticlesCompleted.RefreshData();
                    gdvArticlesGroup.RefreshData();
                }
            }
        }
コード例 #3
0
        /// <summary>
        /// INVOCAR EL CUADRO DE BUSQUEDA PARA LA NOTA DE CREDITO
        /// </summary>
        public void SearchSalesCreditNote()
        {
            ClearControl();
            using (var oForm = new xfSearchQuote(6, SESSION_COMP))
            {
                if (oForm.ShowDialog() == DialogResult.OK)
                {
                    txtCOD_SOCI_NEGO.Text = oForm.oBe.COD_SOCI_NEGO.ToString();
                    beALF_NOMB.Text = oForm.oBe.ALF_NOMB;
                    txtALF_DIRE_FISC.Text = oForm.oBe.ALF_DIRE;
                    txtALF_TELE.Text = "";
                    txtALF_FAXX.Text = "";
                    txtALF_CONT.Text = oForm.oBe.ALF_CONT;
                    txtNUM_DESC.Text = oForm.oBe.NUM_DESC.ToString("#,##0.00");
                    COD_DVEN = oForm.oBe.COD_DVEN;
                    txtNUM_NCRE.Text = oForm.oBe.COD_NCRE.ToString();
                    deFEC_REGI.EditValue = oForm.oBe.FEC_REGI;
                    deFEC_DOCU.EditValue = oForm.oBe.FEC_DOCU;
                    deFEC_VENC.EditValue = oForm.oBe.FEC_PAGO;
                    txtALF_ESTA.Text = oForm.oBe.ALF_ESTA;
                    lueCOD_MONE.EditValue = oForm.oBe.COD_MONE;
                    lueALF_SERI.EditValue = oForm.oBe.ALF_SERI;
                    txtNUM_CORR.Text = oForm.oBe.NUM_CORR.ToString("0000000");
                    txtALF_NUME_IDEN.Text = oForm.oBe.ALF_NUME_IDEN;
                    chkIGV.Checked = oForm.oBe.IND_IMPU;

                    meALF_OBSE.Text = oForm.oBe.ALF_OBSE;
                    lblALF_SONN.Text = oForm.oBe.ALF_TOTA;

                    txtNUM_SUBT.Text = oForm.oBe.NUM_SUBT.ToString("#,##0.00");
                    txtNUM_IGVV.Text = oForm.oBe.NUM_IGVV.ToString("#,##0.00");
                    txtNUM_TOTA.Text = oForm.oBe.NUM_TOTA.ToString("#,##0.00");

                    var oBe = new BESVTD_COTI();
                    var oBr = new BRSVTD_COTI();

                    oBe.COD_COTI = oForm.oBe.COD_DVEN;
                    oBe.NUM_ACCI = 5;
                    oBe.COD_TIPO_DOCU = 4;
                    var oList = oBr.Get_SVPR_COTI_DETA_LIST(oBe);

                }
            }
        }