protected void BtnSave_Click(object sender, EventArgs e) { if (ConferenceManage.SetApplyState(-1, this.RecordId)) { if (this.CBoxSMS.Checked) { DateTime sendTime = default(DateTime); sendTime = DateTime.Now; PublicInterface.SendSmsMsg(new SMSLog { SendUser = this.Session["yhdm"].ToString(), ReceiveUser = this.hdnMangeCode.Value.ToString(), Message = this.txtContent.Text, SendTime = sendTime, I_XGID = this.RecordId.ToString(), V_LXBM = "009" }); } if (this.CBRTX.Checked) { PublicInterface.SendSysMsg(this.getPTDBSJ(this.RecordId.ToString(), "会议退回:" + this.txtContent.Text, this.Session["yhdm"].ToString())); } this.JS.Text = "alert('会议室申请已处理!');window.returnValue='" + this.RecordId.ToString() + "';window.close();"; return; } this.JS.Text = "alert('处理会议室申请失败!');"; }
protected void BtnSave_Click(object sender, EventArgs e) { if (ConferenceManage.SetApplyState(2, this.RecordId)) { this.JS.Text = "alert('会议室已安排!');window.returnValue='" + this.RecordId.ToString() + "';window.close();"; return; } this.JS.Text = "alert('会议室安排失败!');"; }
protected void btnApply_Click(object sender, EventArgs e) { int applyRecordId = 0; if (this.hdnRecordID.Value != "") { applyRecordId = Convert.ToInt32(this.hdnRecordID.Value); } DateTime sendTime = default(DateTime); sendTime = DateTime.Now; if (PublicInterface.SendSmsMsg(new SMSLog { SendUser = this.Session["yhdm"].ToString(), ReceiveUser = this.hdnMangeCode.Value.ToString(), Message = "会议室申请已提交,请及时安排!", SendTime = sendTime, I_XGID = applyRecordId.ToString(), V_LXBM = "010" }) == 1) { if (ConferenceManage.SetApplyState(1, applyRecordId)) { this.Page.ClientScript.RegisterStartupScript(base.GetType(), "ok", "alert('会议室申请已提交,系统将自动通知管理员!');;", true); } else { this.Page.ClientScript.RegisterStartupScript(base.GetType(), "ok", "alert('会议室取消申请失败!');", true); } } else { this.Page.ClientScript.RegisterStartupScript(base.GetType(), "ok", "alert('发送短信消息失败!');;", true); } this.GridView1.DataBind(); }