コード例 #1
0
    private void ApproveData(int id, int approveflag)
    {
        FNA_ClientPaymentForcastBLL bll = new FNA_ClientPaymentForcastBLL(id);

        bll.Model.ApproveFlag = approveflag;
        bll.Update();
        Response.Redirect("ClientPaymentForcastList.aspx?ClientID=" + bll.Model.Client.ToString());
    }
コード例 #2
0
 protected void btn_Save_Click(object sender, EventArgs e)
 {
     foreach (GridViewRow row in gv_List.Rows)
     {
         int CurrentJobID = (int)gv_List.DataKeys[row.RowIndex]["FNA_ClientPaymentForcast_ID"];
         if (CurrentJobID > 0)
         {
             FNA_ClientPaymentForcastBLL bll = new FNA_ClientPaymentForcastBLL(CurrentJobID);
             bll.Model.PayDate     = Convert.ToDateTime(((TextBox)row.FindControl("tbx_PayDate")).Text);
             bll.Model.PayAmount   = Convert.ToDecimal(((TextBox)row.FindControl("tbx_PayAmount")).Text);
             bll.Model.UpdateStaff = (int)Session["UserID"];
             bll.Model.UpdateTime  = DateTime.Now;
             bll.Update();
         }
     }
     BindGrid();
 }
コード例 #3
0
    protected void btn_Save_Click(object sender, EventArgs e)
    {
        foreach (GridViewRow row in gv_List.Rows)
        {
            int CurrentJobID = (int)gv_List.DataKeys[row.RowIndex]["FNA_ClientPaymentForcast_ID"];
            if (CurrentJobID > 0)
            {
                FNA_ClientPaymentForcastBLL bll = new FNA_ClientPaymentForcastBLL(CurrentJobID);
                bll.Model.PayDate=Convert.ToDateTime(((TextBox)row.FindControl("tbx_PayDate")).Text);
                bll.Model.PayAmount = Convert.ToDecimal(((TextBox)row.FindControl("tbx_PayAmount")).Text);
                bll.Model.UpdateStaff = (int)Session["UserID"];
                bll.Model.UpdateTime = DateTime.Now;
                bll.Update();
            }

        }
        BindGrid();
    }
コード例 #4
0
 private void ApproveData(int approveflag)
 {
     foreach (GridViewRow row in gv_List.Rows)
     {
         CheckBox cb_check = (CheckBox)row.FindControl("cb_Check");
         if (cb_check.Checked)
         {
             int CurrentJobID = (int)gv_List.DataKeys[row.RowIndex]["FNA_ClientPaymentForcast_ID"];
             FNA_ClientPaymentForcastBLL bll;
             if (CurrentJobID > 0)
             {
                 bll = new FNA_ClientPaymentForcastBLL(CurrentJobID);
                 bll.Model.ApproveFlag = approveflag;
                 bll.Update();
             }
         }
     }
 }
コード例 #5
0
 private void ApproveData(int approveflag)
 {
     foreach (GridViewRow row in gv_List.Rows)
     {
         CheckBox cb_check = (CheckBox)row.FindControl("cb_Check");
         if (cb_check.Checked)
         {
             int CurrentJobID = (int)gv_List.DataKeys[row.RowIndex]["FNA_ClientPaymentForcast_ID"];
             FNA_ClientPaymentForcastBLL bll;
             if (CurrentJobID > 0)
             {
                 bll = new FNA_ClientPaymentForcastBLL(CurrentJobID);
                 bll.Model.ApproveFlag = approveflag;
                 bll.Update();
             }
         }
     }
 }
コード例 #6
0
 private void ApproveData(int id,int approveflag)
 {
     FNA_ClientPaymentForcastBLL bll = new FNA_ClientPaymentForcastBLL(id);
     bll.Model.ApproveFlag = approveflag;
     bll.Update();
     Response.Redirect("ClientPaymentForcastList.aspx?ClientID=" + bll.Model.Client.ToString());
 }