Esempio n. 1
0
    protected void Button4_Click(object sender, EventArgs e)
    {
        foreach (GridViewRow row in this.GridView1.Rows)
        {
            ChangeLogs cl = new ChangeLogs("config", "ltrim(rtrim(str(ExpectNum)))");

            int ExpectNum = int.Parse(row.Cells[0].Text);
            cl.AddRecord(ExpectNum);
            int  num   = 0;
            bool blean = (row.FindControl("CheckBox1") as CheckBox).Checked;
            if (blean)
            {
                num = ReleaseBLL.Release(ExpectNum, 1);
            }
            else
            {
                num = ReleaseBLL.Release(ExpectNum, 0);
            }

            if (num > 0)
            {
                cl.AddRecord(ExpectNum);
                cl.ModifiedIntoLogs(ChangeCategory.company39, ExpectNum.ToString(), ENUM_USERTYPE.objecttype3);
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("001401", "操作成功!") + "')</script>");
            }
            GetShopList();
        }
    }