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 bool SendSms(string sendUser, string receiveUser, string message, DateTime sendTime, int recordId, string types) { return(PublicInterface.SendSmsMsg(new SMSLog { SendUser = sendUser, ReceiveUser = receiveUser, Message = message, SendTime = sendTime, V_LXBM = types, I_XGID = recordId.ToString() }) == 1); }
private void GetSms(string xgid, string Mes, string jsyhdm) { PublicInterface.SendSmsMsg(new SMSLog { SendUser = this.Session["yhdm"].ToString(), SendTime = System.DateTime.Now, ReceiveUser = jsyhdm, Message = Mes, V_LXBM = "015", I_XGID = xgid }); }
protected void btnHasten_Click(object sender, EventArgs e) { SMSLog sMSData = this.GetSMSData(); int num = PublicInterface.SendSmsMsg(sMSData); if (num > 0) { this.Page.RegisterStartupScript("", "<script>alert('档案借阅催还信息发送成功!');</script>"); return; } this.Page.RegisterStartupScript("", "<script>alert('档案借阅催还信息发送失败!');</script>"); }
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(); }