protected void ccmbSchool_BeforeDataBind(object sender, EventArgs e) { using (DeclarationApprovalApplClient client = new DeclarationApprovalApplClient()) { ccmbSchool.DataSource = client.GetSchoolWithNotApproval(_loginName); } }
/// <summary> /// 取申报 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void cgrdDeclaration_BeforeDataBind(object sender, EventArgs e) { string schoolId = ccmbSchool.SelectedValue; using (DeclarationApprovalApplClient client = new DeclarationApprovalApplClient()) { cgrdDeclaration.DataSource = client.GetDeclarationWithNotApproval(_loginName, schoolId); } }
//readonly string _loginName = "hynhpgj"; //外国语学院院长,42018 //教材科,hynhpgj //教务处,jwclsl #endregion #region 页面加载事件 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //绑定学院下拉列表 ccmbSchool.DataBind(); using (DeclarationApprovalApplClient client = new DeclarationApprovalApplClient()) { //审核人签名 txt_Sign.Text = client.GetAuditor(_loginName); } } }
/// <summary> /// 确认审核事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void cbtnSubmit_Click(object sender, EventArgs e) { cgrdDeclaration.PersistCheckState<DeclarationForApprovalView>(); IList<DeclarationForApprovalView> views = cgrdDeclaration.GetAllCheckedDataList<DeclarationForApprovalView>(); string message = string.Empty; if (views.Count == 0) { message = "请选择待审核记录"; } else { //取审核意见与备注 string approvalSuggestion = crdlSuggestion.SelectedValue; string remark = ctxtRemark.Text.Trim(); using (DeclarationApprovalApplClient client = new DeclarationApprovalApplClient()) { var result = client.SubmitDeclarationApproval(views.ToArray(), _loginName, approvalSuggestion, remark); message = result.Message; } } USCTAMis.Web.WebClient.ScriptManager.Alert(message); }
/// <summary> /// 确认审核事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void cbtnSubmit_Click(object sender, EventArgs e) { cgrdDeclaration.PersistCheckState <DeclarationForApprovalView>(); IList <DeclarationForApprovalView> views = cgrdDeclaration.GetAllCheckedDataList <DeclarationForApprovalView>(); string message = string.Empty; if (views.Count == 0) { message = "请选择待审核记录"; } else { //取审核意见与备注 string approvalSuggestion = crdlSuggestion.SelectedValue; string remark = ctxtRemark.Text.Trim(); using (DeclarationApprovalApplClient client = new DeclarationApprovalApplClient()) { var result = client.SubmitDeclarationApproval(views.ToArray(), _loginName, approvalSuggestion, remark); message = result.Message; } } USCTAMis.Web.WebClient.ScriptManager.Alert(message); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //绑定学院下拉列表 ccmbSchool.DataBind(); using (DeclarationApprovalApplClient client = new DeclarationApprovalApplClient()) { //审核人签名 txt_Sign.Text = client.GetAuditor(_loginName); } } }