Example #1
0
 private void btnSearch_Click(object sender, System.EventArgs e)
 {
     FBuscarCorte FBuscar = new FBuscarCorte();
     FBuscar.ShowDialog(this);
     string slCorte = FBuscar.spCorte;
     this.sgCorte = slCorte;
     if((this.sgCorte!= "")&&(this.sgCorte!= null))
     {
         DataSet dsDetalle = new DataSet();
         dsDetalle = SistEti.lpQueries.LlenaCTporID(slCorte);
         //NoCorte, Contrato, Estilo, Color
         this.tbxCorte.Text = dsDetalle.Tables[0].Rows[0][0].ToString();
         this.tbContrato.Text = dsDetalle.Tables[0].Rows[0][1].ToString();
         this.tbEstilo.Text = dsDetalle.Tables[0].Rows[0][2].ToString();
         this.tbColor.Text = dsDetalle.Tables[0].Rows[0][3].ToString();
         LlenaDetalle();
     }
 }
Example #2
0
        private void btnSearch_Click(object sender, System.EventArgs e)
        {
            FBuscarCorte FBuscar = new FBuscarCorte();
            FBuscar.ShowDialog(this);
            string slCorte = FBuscar.spCorte;

            if((slCorte!= "")&&(slCorte!= null))
            {
                this.sgCorte = slCorte;
                DataSet dsDetalle = new DataSet();
                dsDetalle = SistEti.lpQueries.LlenaCTporID(slCorte);
                this.tbxCorte.Text = dsDetalle.Tables[0].Rows[0][0].ToString();
                this.tbContrato.Text = dsDetalle.Tables[0].Rows[0][1].ToString();
                this.tbEstilo.Text = dsDetalle.Tables[0].Rows[0][2].ToString();
                this.tbColor.Text = dsDetalle.Tables[0].Rows[0][3].ToString();

                LlenaDetalle();
                LlenaTallaQTY();
                LenaTallaCaptQTY();
                LlenaTallaCaptQTYFaltante();

                this.lblTotalPCapt.Text = dsDetalle.Tables[0].Rows[0][4].ToString();
                GeneraTotalPrendas();
                this.lblTotalPFalt.Text=Convert.ToString(Convert.ToInt32(this.lblTotalPCorte.Text)-Convert.ToInt32(this.lblTotalPCapt.Text));

                this.lblCaptPorc.Text=Convert.ToString(Convert.ToInt32(((Convert.ToDecimal(this.lblTotalPCapt.Text)/Convert.ToDecimal(this.lblTotalPCorte.Text))*100)))+"%";
                this.lblFaltPorc.Text=Convert.ToString(100-Convert.ToInt32(((Convert.ToDecimal(this.lblTotalPCapt.Text)/Convert.ToDecimal(this.lblTotalPCorte.Text))*100)))+"%";;

                this.gbxBoxType.Enabled = true;
                string slCajaId = SistEti.lpQueries.RegresaConsecutivoCaja(this.sgCorte);
                if(this.blPrimeraLectura)
                    slCajaId = Convert.ToString(Convert.ToInt32(slCajaId)+1);
                this.lblCaja.Text=slCajaId;
                gbxBoxType.Enabled = true;
            }
        }
Example #3
0
        private void btnSearch_Click(object sender, System.EventArgs e)
        {
            FBuscarCorte FBuscar = new FBuscarCorte();
            FBuscar.ShowDialog(this);
            string slCorte = FBuscar.spCorte;
            this.sgCorte = slCorte;
            if((this.sgCorte!= "")&&(this.sgCorte!= null))
            {
                DataSet dsDetalle = new DataSet();
                dsDetalle = SistEti.lpQueries.LlenaCTporID(slCorte);
                //NoCorte, Contrato, Estilo, Color
                this.tbxCorte.Text = dsDetalle.Tables[0].Rows[0][0].ToString();
                this.tbContrato.Text = dsDetalle.Tables[0].Rows[0][1].ToString();
                this.tbEstilo.Text = dsDetalle.Tables[0].Rows[0][2].ToString();
                this.tbColor.Text = dsDetalle.Tables[0].Rows[0][3].ToString();

                DataSet dsDetalle1 = new DataSet();
                DataViewManager dvmDetalle1;
                dvmDetalle1= dsDetalle1.DefaultViewManager;

                this.dgFlat1.DataSource = dvmDetalle1;
                this.dgFlat2.DataSource = dvmDetalle1;
                this.dgFlat3.DataSource = dvmDetalle1;
                this.dgFlat4.DataSource = dvmDetalle1;
                this.dgFlat5.DataSource = dvmDetalle1;
                this.dgFlat6.DataSource = dvmDetalle1;
                this.dgFlat7.DataSource = dvmDetalle1;
                this.dgFlatS1.DataSource = dvmDetalle1;
                this.dgFlatS2.DataSource = dvmDetalle1;
                this.dgFlatS3.DataSource = dvmDetalle1;
                this.dgFlatSC1.DataSource = dvmDetalle1;
                this.dgFlatSC2.DataSource = dvmDetalle1;
                this.dgFlatST1.DataSource = dvmDetalle1;
                this.dgFlatST2.DataSource = dvmDetalle1;
                LlenaDetalle();
                this.btnGuardar.Visible=true;
                this.btnPacking.Visible=true;
            }
        }
Example #4
0
 private void btnSearch_Click(object sender, System.EventArgs e)
 {
     FBuscarCorte FBuscar = new FBuscarCorte();
     FBuscar.ShowDialog(this);
     string slCorte = FBuscar.spCorte;
     if((slCorte!= "")&&(slCorte!= null))
     {
         this.sgCorte = slCorte;
         DataSet dsDetalle = new DataSet();
         dsDetalle = SistEti.lpQueries.LlenaCTporID(slCorte);
         //NoCorte, Contrato, Estilo, Color
         this.tbCorte.Text = dsDetalle.Tables[0].Rows[0][0].ToString();
         this.tbContrato.Text = dsDetalle.Tables[0].Rows[0][1].ToString();
         this.cbxEstilos.Text = dsDetalle.Tables[0].Rows[0][2].ToString();
         this.cbxColor.Text = dsDetalle.Tables[0].Rows[0][3].ToString();
         LlenaTallaQTY();
         bgModoEdicion=true;
         GeneraTotalPrendas();
         this.btnExport.Visible=true;
         //this.btnExpAcum.Visible=true;
         this.btnExportaListaPL.Visible =true;
     }
 }
Example #5
0
        private void btnSearch_Click(object sender, System.EventArgs e)
        {
            FBuscarCorte FBuscar = new FBuscarCorte();
            FBuscar.ShowDialog(this);
            string slCorte = FBuscar.spCorte;

            if((slCorte!= "")&&(slCorte!= null))
            {
                this.sgCorte = slCorte;
                DataSet dsDetalle = new DataSet();
                dsDetalle = SistEti.lpQueries.LlenaCTporID(slCorte);
                //NoCorte, Contrato, Estilo, Color
                this.tbxCorte.Text = dsDetalle.Tables[0].Rows[0][0].ToString();
                this.tbContrato.Text = dsDetalle.Tables[0].Rows[0][1].ToString();
                this.tbEstilo.Text = dsDetalle.Tables[0].Rows[0][2].ToString();
                this.tbColor.Text = dsDetalle.Tables[0].Rows[0][3].ToString();

                LlenaDetalle();
                LlenaTallaQTY();
                //				try
                //				{
                LenaTallaCaptQTY();
                LlenaTallaCaptQTYFaltante();

                this.lblTotalPCapt.Text = dsDetalle.Tables[0].Rows[0][4].ToString();
                GeneraTotalPrendas();
                this.lblTotalPFalt.Text=Convert.ToString(Convert.ToInt32(this.lblTotalPCorte.Text)-Convert.ToInt32(this.lblTotalPCapt.Text));
                this.lblCaptPorc.Text=Convert.ToString(Convert.ToInt32(((Convert.ToDecimal(this.lblTotalPCapt.Text)/Convert.ToDecimal(this.lblTotalPCorte.Text))*100)))+"%";
                this.lblFaltPorc.Text=Convert.ToString(100-Convert.ToInt32(((Convert.ToDecimal(this.lblTotalPCapt.Text)/Convert.ToDecimal(this.lblTotalPCorte.Text))*100)))+"%";;

                this.gbxBoxType.Enabled = true;
                this.tbxUPC.Enabled = true;
                this.tbxUPC.Focus();

                //Consecutivo Caja
                string slCajaId = SistEti.lpQueries.RegresaConsecutivoCaja(this.sgCorte);

                this.lblCaja.Text=slCajaId;
                //				}
                //				catch(Exception err)
                //				{
                //					string slError = err.Message;
                //				}
            }
            //			else
            //			{
            //				this.gbxBoxType.Enabled = false;
            //				this.tbxUPC.Enabled=false;
            //				this.tbxCorte.Focus();
            //			}
            //
            //			this.tbxUPC.Enabled = false;
            //			this.tbxCorte.Focus();
            //			this.btnGuardarCaja.Visible=false;
            //			rbnBoxType1.Checked = false;
            //			rbnBoxType2.Checked = false;
            //			rbnBoxType3.Checked = false;
            //			rbnBoxType4.Checked = false;
        }