Exemple #1
0
    protected void btnUnHold_Click(object sender, EventArgs e)
    {
        string _DataBy     = "40865";
        string _DataPrdLot = "";
        string _DataSerial = "";
        string _DataStatus = "ALLOW";
        string _Error      = "";

        foreach (RepeaterItem item in rptPacking.Items)
        {
            if (item.ItemType == ListItemType.Item || item.ItemType == ListItemType.AlternatingItem)
            {
                CheckBox ckPrdSerial  = (CheckBox)item.FindControl("ckPrdSerial") as CheckBox;
                Label    lblPrdSerial = (Label)item.FindControl("lblPrdSerial") as Label;
                if (ckPrdSerial.Checked)
                {
                    _DataSerial = lblPrdSerial.Text;
                    string Response = srvProd.UpdateUnHold(_DataBy, _DataPrdLot, _DataSerial, _DataStatus);
                    if (Response == "FAIL")
                    {
                        _Error += _DataSerial + ":FAIL.  ";
                    }
                }// checked
            }
        }


        //---- Load Data ----
        GetData();

        lblError.Text = _Error;
    }