protected void btnSend_Click(object sender, EventArgs e)
        {
            //if (string.IsNullOrEmpty(txtPalletId.Text.Trim()))
            //{
            //    minlenght.Enabled = true;
            //    minlenght.ErrorMessage = mensajes("Please Fill all the Required  Fields.");
            //    minlenght.IsValid = false;

            //    return;
            //}

            InterfazDAL_tticol125 idal = new InterfazDAL_tticol125();
            Ent_tticol125         obj  = new Ent_tticol125();
            string strError            = string.Empty;

            //obj.pdno = txtWorkOrder.Text.ToUpper();
            obj.conf       = 2; // CONFIRMED = NO
            obj.paid       = txtPalletId.Text.ToUpper();
            lblResult.Text = string.Empty;
            DataTable resultado = idal.listaRegistrosporConfirmar_Param(ref obj, ref strError);

            // Validar si el numero de orden trae registros
            if (strError != string.Empty)
            {
                OrderError.IsValid      = false;
                OrderError.ForeColor    = System.Drawing.Color.Red;
                OrderError.ErrorMessage = strError;

                txtWorkOrder.Focus();
                btnSave.Visible = false;
                return;
            }
            lblOrder.Text         = _idioma == "INGLES" ? "Order: " : "Orden: " + obj.pdno;
            obj.pdno              = resultado.Rows[0]["T$PDNO"].ToString().Trim();
            Order                 = obj.pdno;
            grdRecords.DataSource = resultado;
            grdRecords.DataBind();

            this.HeaderGrid.Visible = true;
            btnSave.Visible         = true;
            lblResult.Text          = "";
        }
示例#2
0
        protected void btnSend_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(txtWorkOrder.Text.Trim()))
            {
                minlenght.Enabled      = true;
                minlenght.ErrorMessage = "Work Order is required";
                minlenght.IsValid      = false;

                return;
            }

            InterfazDAL_tticol125 idal = new InterfazDAL_tticol125();
            Ent_tticol125         obj  = new Ent_tticol125();
            string strError            = string.Empty;

            txtWorkOrder.Text = txtWorkOrder.Text.ToUpperInvariant();
            obj.pdno          = txtWorkOrder.Text.ToUpperInvariant();
            obj.conf          = 2; // CONFIRMED = NO
            lblResult.Text    = string.Empty;
            DataTable resultado = idal.listaRegistrosporConfirmar_Param(ref obj, ref strError);


            // Validar si el numero de orden trae registros
            if (strError != string.Empty)
            {
                OrderError.IsValid = false;
                txtWorkOrder.Focus();
                btnSave.Visible = false;
                return;
            }
            lblOrder.Text         = "Order: " + obj.pdno;
            grdRecords.DataSource = resultado;
            grdRecords.DataBind();

            this.HeaderGrid.Visible = true;
            btnSave.Visible         = true;
            lblResult.Text          = "";
        }