Example #1
0
    protected void bt_Approve_Click(object sender, EventArgs e)
    {
        int client = 0, month = 0;

        if (int.TryParse(select_Client.SelectValue, out client) && int.TryParse(ddl_Month.SelectedValue, out month))
        {
            SVM_JXCSummaryBLL.Approve(client, month, (int)Session["UserID"], int.Parse(rbl_IsOpponent.SelectedValue));
            MessageBox.ShowAndRedirect(this, "已将进销存设为审核通过!", "JXCSummary_List.aspx?ClientType=" + ViewState["ClientType"].ToString());
        }
    }
 protected void bt_BathApprove_Click(object sender, EventArgs e)
 {
     foreach (GridViewRow gr in gv_List.Rows)
     {
         if (((CheckBox)gr.FindControl("chk_ID")).Checked == true)
         {
             int client = int.Parse(gv_List.DataKeys[gr.RowIndex]["Client"].ToString());
             int month  = int.Parse(gv_List.DataKeys[gr.RowIndex]["AccountMonth"].ToString());
             SVM_JXCSummaryBLL.Approve(client, month, (int)Session["UserID"], int.Parse(rbl_IsOpponent.SelectedValue));
         }
     }
     BindGrid();
 }