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()); }
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(); }
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(); }
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(); } } } }
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(); } } } }
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()); }