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