本文整理汇总了C#中HyoaClass.Hyoa_global.Senddbsy_global方法的典型用法代码示例。如果您正苦于以下问题:C# HyoaClass.Hyoa_global.Senddbsy_global方法的具体用法?C# HyoaClass.Hyoa_global.Senddbsy_global怎么用?C# HyoaClass.Hyoa_global.Senddbsy_global使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HyoaClass.Hyoa_global
的用法示例。
在下文中一共展示了HyoaClass.Hyoa_global.Senddbsy_global方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: hysendxx
private void hysendxx(string lssendtype, string lstxconent)
{
//lssendtype:发送哪几个提醒,字符串的值为:手机短信#即时消息#待办事宜
//向登记人发:手机短信、即时消息、待办事宜 具体哪个环节发送,写在调用的函数里。 此字段不通用
string[] lvsendtype;
lvsendtype = lssendtype.Split('#');
HyoaClass.Hyoa_global Hyoa_global = new HyoaClass.Hyoa_global();
for (int k = 0; k < lvsendtype.Length; k++)
{
if (lvsendtype[k] == "手机短信")
{
HyoaClass.Hyoa_user Hyoa_user = new HyoaClass.Hyoa_user();
string cb_fsrsjh2 = Hyoa_user.GetMobilebyuserid(this.Session["hyuid"].ToString());
string cb_jsrsjh2 = Hyoa_user.GetMobilebyuserid(this.hy_djrid.Text);
Hyoa_global.Sendsms_global(this.txtdocid.Value, this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), cb_fsrsjh2, this.hy_djrid.Text, this.hy_djrname.Text, cb_jsrsjh2, this.hy_mudelid.Text, lstxconent, 1, "", "", 0, this.hy_tableid.Text);
}
if (lvsendtype[k] == "即时消息")
{
Hyoa_global.Sendjstx_global(this.txtdocid.Value, this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), this.hy_djrid.Text, this.hy_djrname.Text, this.hy_mudelid.Text, lstxconent, 0, this.hy_tableid.Text);
}
if (lvsendtype[k] == "待办事宜")
{
Hyoa_global.Senddbsy_global(this.txtdocid.Value, this.hy_djrid.Text, this.hy_djrname.Text, this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), "main.aspx?op=modify&mid=" + this.hy_mudelid.Text + "&tableid=" + this.hy_tableid.Text + "&docid=" + this.txtdocid.Value + "&pop=1", "待办", this.hy_mudelid.Text, "待办箱", "一般", lstxconent, "请办理", 0, this.hy_flowid.Text, this.txtnexttacheid.Value, this.hy_tableid.Text);
}
}
}
示例2: Button_Save_Click
//.........这里部分代码省略.........
if (dt_clinfo.Rows[0]["hy_clsj"].ToString() == "")
{
Hyoa_flowhistoryinfo_cl.hy_clsj = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
}
else
{
Hyoa_flowhistoryinfo_cl.hy_clsj = dt_clinfo.Rows[0]["hy_clsj"].ToString() + "," + System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
}
Hyoa_flowhistoryinfo_cl.Update();
}
//---- 添加当前环节的处理时间 ---- end
////////////////////如果后续环节选择了“结束”,则不需要发待办事宜和短消息 start//////////////////////
HyoaClass.Hyoa_dbsy Hyoa_dbsy = new HyoaClass.Hyoa_dbsy();
if (this.txtnexttacheid.Value != "**")
{
//--- 创建后续处理的处理记录+建立处理人待办事宜 ---- start
Hyoa_global.Saveflowhistoryinfo_cl_global(this.txtdocid.Value, this.hy_flowid.Text, this.hy_flowname.Text, this.txtnexttacheid.Value, this.txtnexttachename.Value, this.txtnextclrid.Value, this.txtnextclrname.Value, "", this.txtnextcyrid.Value, this.txtnextcyrname.Value, System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), "");
//待办事宜、短信、即时消息
string[] lv_dbrid = this.txtnextclrid.Value.Split(new Char[] { ',' });
string[] lv_dbrname = this.txtnextclrname.Value.Split(new Char[] { ',' });
for (var i = 0; i < lv_dbrid.Length; i++)
{
if (lv_dbrid[i].ToString() != "")
{
//得到当前用户手机号
HyoaClass.Hyoa_user Hyoa_user = new HyoaClass.Hyoa_user();
string cb_fsrsjh = Hyoa_user.GetMobilebyuserid(this.Session["hyuid"].ToString());
//得到后续处理人手机号
string cb_jsrsjh = Hyoa_user.GetMobilebyuserid(lv_dbrid[i].ToString());
//给后续处理人发送一个新的待办事宜(提醒)
Hyoa_global.Senddbsy_global(this.txtdocid.Value, lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), "main.aspx?op=modify&mid=" + this.hy_mudelid.Text + "&tableid=" + this.hy_tableid.Text + "&docid=" + this.txtdocid.Value + "&pop=1", "待办", this.hy_mudelid.Text, "待办箱", "一般", this.hy_bt.Text, "请办理", 0, this.hy_flowid.Text, this.txtnexttacheid.Value, this.hy_tableid.Text);
//给后续处理人发送即时消息(提醒)
if (this.txtisSendjstx_clr.Value == "1")
{
Hyoa_global.Sendjstx_global(this.txtdocid.Value, this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), this.hy_mudelid.Text, this.hy_bt.Text, 0, this.hy_tableid.Text);
}
//给后续处理人发送短信(提醒)
if (this.txtisSendsms_clr.Value == "1")
{
Hyoa_global.Sendsms_global(this.txtdocid.Value, this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), cb_fsrsjh, lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), cb_jsrsjh, this.hy_mudelid.Text, this.hy_bt.Text, 1, "", "", 0, this.hy_tableid.Text);
}
}
}
//--- 创建后续处理的处理记录+建立处理人待办事宜 ---- end
//--- 创建后续传阅记录+建立待办事宜 ---- start
string[] lv_cyrid = this.txtnextcyrid.Value.Split(new Char[] { ',' });
string[] lv_cyrname = this.txtnextcyrname.Value.Split(new Char[] { ',' });
for (var i = 0; i < lv_cyrid.Length; i++)
{
if (lv_cyrid[i].ToString() != "")
{
//建立传阅数据
Hyoa_global.Saveflowhistoryinfo_cy_global(this.txtdocid.Value, this.hy_flowid.Text, this.hy_flowname.Text, this.txtnexttacheid.Value, this.txtnexttachename.Value, lv_cyrid[i].ToString(), lv_cyrname[i].ToString(), "", System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
//待办事宜、短信、即时消息
//得到当前用户手机号
HyoaClass.Hyoa_user Hyoa_user = new HyoaClass.Hyoa_user();
string cb_fsrsjh = Hyoa_user.GetMobilebyuserid(this.Session["hyuid"].ToString());
//得到后续传阅人手机号
string cb_cyrsjh = Hyoa_user.GetMobilebyuserid(lv_cyrid[i].ToString());
示例3: hylcjstscl
//流程流程结束时的特殊处理
private string hylcjstscl()
{
string sql = "";
#region 流程结束给登记人发送提醒start
string cb_docid = this.txtdocid.Value;
string cb_dbrid = this.hy_djrid.Text;
string cb_dbrname = this.hy_djrname.Text;
string cb_fsrid = this.Session["hyuid"].ToString();
string cb_fsrname = this.Session["hyuname"].ToString();
string cb_url = "main.aspx?op=modify&mid=" + this.hy_mudelid.Text + "&tableid=" + this.hy_tableid.Text + "&docid=" + this.txtdocid.Value + "&pop=1";
string cb_property = "待阅";
string cb_mudelid = this.hy_mudelid.Text;
string cb_foldername = "待阅箱";
string cb_hj = "一般";
string cb_bt = this.hy_bt.Text;
string cb_subbt = "[流程已结束]";
float cb_ifyb = 0;
string cb_flowid = this.hy_flowid.Text;
string cb_tacheid = this.hy_curtacheid.Text;
string cb_from = this.hy_mudelid.Text;
//得到发送人手机号
HyoaClass.Hyoa_global Hyoa_global = new HyoaClass.Hyoa_global();
//HyoaClass.Hyoa_user Hyoa_user = new HyoaClass.Hyoa_user();
//string cb_fsrsjh = Hyoa_user.GetMobilebyuserid(cb_fsrid);
////得到接收人手机号
//string cb_jsrsjh = Hyoa_user.GetMobilebyuserid(cb_dbrid);
//给当前处理人发送一个新的待办事宜(提醒)
Hyoa_global.Senddbsy_global(cb_docid, cb_dbrid, cb_dbrname, cb_fsrid, cb_fsrname, cb_url, cb_property, cb_mudelid, cb_foldername, cb_hj, cb_bt, cb_subbt, cb_ifyb, cb_flowid, cb_tacheid, this.hy_tableid.Text);
//给当前处理人发送即时消息(提醒)
Hyoa_global.Sendjstx_global(cb_docid, cb_fsrid, cb_fsrname, cb_dbrid, cb_dbrname, cb_from, cb_bt, 0, this.hy_tableid.Text);
#endregion 流程结束给登记人发送提醒end
return sql;
}
示例4: Button_Save_Click
//保存
protected void Button_Save_Click(object sender, EventArgs e)
{
if (this.Session["hyuid"].ToString() == "")
this.Response.Redirect("../login.aspx");
string ls_tip = "发送成功!";
HyoaClass.Hyoa_wjcd Hyoa_wjcd = new HyoaClass.Hyoa_wjcd();
HyoaClass.Hyoa_global Hyoa_global = new HyoaClass.Hyoa_global();
string ls_insert = "";
string ls_update = "";
//取提醒方式
string ls_txfs = "";
CheckBoxList txfs = (CheckBoxList)this.FindControl("txfs");
foreach (ListItem li in txfs.Items)
{
if (li.Selected)
{
if (li.Selected) ls_txfs += li.Value + ",";
}
}
ls_txfs = ls_txfs.TrimEnd(',');
//发送
if (this.txtwhichoperation.Value == "1")
{
string[] lv_jsrid = this.txthy_jsrid.Text.Split('+');
string[] lv_jsrname = this.txthy_jsrname.Value.Split('+');
for (var i = 0; i < lv_jsrid.Length; i++)
{
if (lv_jsrid[i] != "")
{
string ls_id = Hyoa_global.GetRandom();
ls_insert = "insert into hyp_wjcd (ID,DOCID,hy_type,hy_foldername,hy_fsrid,hy_fsrname,hy_jsrid,hy_jsrname";
ls_insert += ",hy_title,hy_body,hy_datetime,hy_ifsavetofjx,hy_yxj,hy_yjbg,hy_zycd,hy_hz,hy_status,hy_jzsj";
ls_insert += ",hy_txfs,hy_ifyhf,hy_txstatus) values ('" + ls_id + "','" + this.txtdocid.Value + "','收件','" + this.ddlhy_foldername.Text + "'";
ls_insert += ",'" + this.lblhy_fsrid.Text + "','" + this.lblhy_fsrname.Text + "','" + lv_jsrid[i].ToString() + "'";
ls_insert += ",'" + lv_jsrname[i].ToString() + "','" + this.txthy_title.Text + "','" + this.hy_content1.Value + "'";
ls_insert += ",'" + System.DateTime.Now.ToString() + "','','','','','','已发送','" + this.jzsj.Value + "','" + ls_txfs + "','0','0')";
Hyoa_global.ExcuteSQL(ls_insert);
//发送待办事宜提醒
HyoaClass.Hyoa_dbsy Hyoa_dbsy = new HyoaClass.Hyoa_dbsy();
Hyoa_global.Senddbsy_global(ls_id, lv_jsrid[i].ToString(), lv_jsrname[i].ToString(), this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), "wjcd/main_read.aspx?id=" + ls_id + "&pop=1", "待阅", "Mudelwjcd", "待办箱", "一般", this.txthy_title.Text, "请阅读", 0, "", "", "");
//发送即时通讯提醒
Hyoa_global.Sendjstx_global(ls_id, this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), lv_jsrid[i].ToString(), lv_jsrname[i].ToString(), "Mudelwjcd", this.txthy_title.Text, 0, "");
}
}
//发送的同时,则保存一份
if (this.txtop.Value == "add")
{
ls_insert = "insert into hyp_wjcd (ID,DOCID,hy_type,hy_foldername,hy_fsrid,hy_fsrname,hy_jsrid,hy_jsrname";
ls_insert += ",hy_title,hy_body,hy_datetime,hy_ifsavetofjx,hy_yxj,hy_yjbg,hy_zycd,hy_hz,hy_status,hy_jzsj";
ls_insert += ",hy_txfs,hy_ifyhf,hy_txstatus) values ('" + Hyoa_global.GetRandom() + "','" + this.txtdocid.Value + "','发件','" + this.ddlhy_foldername.Text + "'";
ls_insert += ",'" + this.lblhy_fsrid.Text + "','" + this.lblhy_fsrname.Text + "','" + this.txthy_jsrid.Text + "'";
ls_insert += ",'" + this.txthy_jsrname.Value + "','" + this.txthy_title.Text + "','" + this.hy_content1.Value + "'";
ls_insert += ",'" + System.DateTime.Now.ToString() + "','" + this.ddlifsavetofjx.SelectedValue + "','','','',''";
ls_insert += ",'已发送','" + this.jzsj.Value + "','" + ls_txfs + "','0','0')";
Hyoa_global.ExcuteSQL(ls_insert);
}
else
{
string ls_id = this.txtid.Value;
Hyoa_wjcd.ID = ls_id;
this.txtid.Value = ls_id;
ls_update = "update hyp_wjcd set DOCID='" + this.txtdocid.Value + "',hy_type='发件',hy_foldername='" + this.ddlhy_foldername.Text + "'";
ls_update += ",hy_fsrid='" + this.lblhy_fsrid.Text + "',hy_fsrname='" + this.lblhy_fsrname.Text + "',hy_jsrid='" + this.txthy_jsrid.Text + "'";
ls_update += ",hy_jsrname='" + this.txthy_jsrname.Value + "',hy_title='" + this.txthy_title.Text + "',hy_body='" + this.hy_content1.Value + "'";
ls_update += ",hy_datetime='" + System.DateTime.Now.ToString() + "',hy_ifsavetofjx='" + this.ddlifsavetofjx.SelectedValue + "',hy_status='已发送'";
ls_update += ",hy_jzsj='" + this.jzsj.Value + "',hy_txfs='" + ls_txfs + "' where ID= '" + ls_id + "' ";
Hyoa_global.ExcuteSQL(ls_update);
ls_tip = "保存成功!";
}
this.txturl.Value = "list_wjcd_yfs.aspx?mid=" + this.txtmudelid.Value + "&tableid="; //返回URL
}
//保存
if (this.txtwhichoperation.Value == "2")
{
if (this.txtop.Value == "add")
{
string ls_id = this.txtdocid.Value;
Hyoa_wjcd.ID = ls_id;
this.txtid.Value = ls_id;
Hyoa_wjcd.DOCID = this.txtdocid.Value;
Hyoa_wjcd.hy_type = "发件";
Hyoa_wjcd.hy_foldername = this.ddlhy_foldername.Text;
Hyoa_wjcd.hy_fsrid = this.lblhy_fsrid.Text;
Hyoa_wjcd.hy_fsrname = this.lblhy_fsrname.Text;
Hyoa_wjcd.hy_jsrid = this.txthy_jsrid.Text;
Hyoa_wjcd.hy_jsrname = this.txthy_jsrname.Value;
Hyoa_wjcd.hy_title = this.txthy_title.Text;
Hyoa_wjcd.hy_body = this.hy_content1.Value;
Hyoa_wjcd.hy_datetime = System.DateTime.Now.ToString();
Hyoa_wjcd.hy_ifsavetofjx = this.ddlifsavetofjx.SelectedValue;
Hyoa_wjcd.hy_yxj = "";
Hyoa_wjcd.hy_yjbg = "";
Hyoa_wjcd.hy_zycd = "";
//.........这里部分代码省略.........
示例5: Button_Save_Click
//.........这里部分代码省略.........
{
string ls_curcldoc = dt_clinfo.Rows[0]["ID"].ToString(); //当前处理的记录ID
Hyoa_flowhistoryinfo_cl.ID = ls_curcldoc;
if (dt_clinfo.Rows[0]["hy_clsj"].ToString() == "")
{
Hyoa_flowhistoryinfo_cl.hy_clsj = System.DateTime.Now.ToString();
}
else
{
Hyoa_flowhistoryinfo_cl.hy_clsj = dt_clinfo.Rows[0]["hy_clsj"].ToString() + "," + System.DateTime.Now.ToString();
}
Hyoa_flowhistoryinfo_cl.Update();
}
//---- 添加当前环节的处理时间 ---- end
//--- 创建后续处理的处理记录+建立处理人待办事宜 ---- start
Hyoa_global.Saveflowhistoryinfo_cl_global(this.txtdocid.Value, this.hy_flowid.Text, this.hy_flowname.Text, this.txtnexttacheid.Value, this.txtnexttachename.Value, this.txtnextclrid.Value, this.txtnextclrname.Value, "", this.txtnextcyrid.Value, this.txtnextcyrname.Value, System.DateTime.Now.ToString(), "");
//待办事宜、短信、即时消息
HyoaClass.Hyoa_dbsy Hyoa_dbsy = new HyoaClass.Hyoa_dbsy();
string[] lv_dbrid = this.txtnextclrid.Value.Split(new Char[] { ',' });
string[] lv_dbrname = this.txtnextclrname.Value.Split(new Char[] { ',' });
for (var i = 0; i < lv_dbrid.Length; i++)
{
if (lv_dbrid[i].ToString() != "")
{
//得到当前用户手机号
HyoaClass.Hyoa_user Hyoa_user = new HyoaClass.Hyoa_user();
string cb_fsrsjh = Hyoa_user.GetMobilebyuserid(this.Session["hyuid"].ToString());
//得到后续处理人手机号
string cb_jsrsjh = Hyoa_user.GetMobilebyuserid(lv_dbrid[i].ToString());
//给后续处理人发送一个新的待办事宜(提醒)
Hyoa_global.Senddbsy_global(this.txtdocid.Value, lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), "/main.aspx?op=modify&mid=" + this.hy_mudelid.Text + "&tableid=" + this.hy_tableid.Text + "&docid=" + this.txtdocid.Value + "&pop=1", "待办", this.hy_mudelid.Text, "待办箱", "一般", this.hy_bt.Text, "请办理", 0, this.hy_flowid.Text, this.txtnexttacheid.Value);
//给后续处理人发送即时消息(提醒)
if (this.txtisSendjstx_clr.Value == "1")
{
Hyoa_global.Sendjstx_global(this.txtdocid.Value, this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), this.hy_mudelid.Text, this.hy_bt.Text, 0);
}
//给后续处理人发送短信(提醒)
if (this.txtisSendsms_clr.Value == "1")
{
Hyoa_global.Sendsms_global(this.txtdocid.Value, this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), cb_fsrsjh, lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), cb_jsrsjh, this.hy_mudelid.Text, this.hy_bt.Text, 1, "", "", 0);
}
}
}
//--- 创建后续处理的处理记录+建立处理人待办事宜 ---- end
//--- 创建后续传阅记录+建立待办事宜 ---- start
string[] lv_cyrid = this.txtnextcyrid.Value.Split(new Char[] { ',' });
string[] lv_cyrname = this.txtnextcyrname.Value.Split(new Char[] { ',' });
for (var i = 0; i < lv_cyrid.Length; i++)
{
if (lv_cyrid[i].ToString() != "")
{
//建立传阅数据
Hyoa_global.Saveflowhistoryinfo_cy_global(this.txtdocid.Value, this.hy_flowid.Text, this.hy_flowname.Text, this.txtnexttacheid.Value, this.txtnexttachename.Value, lv_cyrid[i].ToString(), lv_cyrname[i].ToString(), "", System.DateTime.Now.ToString());
//待办事宜、短信、即时消息
//得到当前用户手机号
HyoaClass.Hyoa_user Hyoa_user = new HyoaClass.Hyoa_user();
string cb_fsrsjh = Hyoa_user.GetMobilebyuserid(this.Session["hyuid"].ToString());
//得到后续传阅人手机号
string cb_cyrsjh = Hyoa_user.GetMobilebyuserid(lv_cyrid[i].ToString());
//给后续处理人发送一个新的待办事宜(提醒)
示例6: Button_Save_Click
//.........这里部分代码省略.........
//待办事宜、短信、即时消息
HyoaClass.Hyoa_dbsy Hyoa_dbsy = new HyoaClass.Hyoa_dbsy();
string[] lv_dbrid = this.txtnextclrid.Value.Split(new Char[] { ',' });
string[] lv_dbrname = this.txtnextclrname.Value.Split(new Char[] { ',' });
for (var i = 0; i < lv_dbrid.Length; i++)
{
if (lv_dbrid[i].ToString() != "")
{
//得到当前用户手机号
HyoaClass.Hyoa_user Hyoa_user = new HyoaClass.Hyoa_user();
string cb_fsrsjh = Hyoa_user.GetMobilebyuserid(this.Session["hyuid"].ToString());
//得到后续处理人手机号
string cb_jsrsjh = Hyoa_user.GetMobilebyuserid(lv_dbrid[i].ToString());
string ls_sendbt;
if (this.txtnexttacheid.Value == "tache0002")
{
//ls_sendbt = "有督查件:《区政府政务督查通知单〔" + this.hy_field36.Text + "〕" + this.hy_field37.Text + "号》,请在区政府信息督查系统查收并于" + this.hy_field34.Text.ToString() + "前按要求及时反馈。";
if (this.txthyc_lb.SelectedValue == "办件")
{
ls_sendbt = "《督查通知单〔" + this.txthyc_nf.Text + "〕" + this.txthyc_bh.Text + "号》已发,请尽快查收并于" + this.txthyc_cbqx.Text.ToString() + "前按要求反馈。";
//《区政府督查通知单〔2012〕235号》已发,请尽快查收并于2012-08-10前按要求反馈。
}
else
{
ls_sendbt = "有" + this.txthyc_lb.SelectedValue + ":《督查通知单〔" + this.txthyc_nf.Text + "〕" + this.txthyc_bh.Text + "号》已发,请及时查收并转交领导。";
//有重要阅件:《区政府督查通知单〔2012〕235号》已发,请及时查收并转交领导。
}
}
else
{
ls_sendbt = this.hy_bt.Text;
}
//给后续处理人发送一个新的待办事宜(提醒)
Hyoa_global.Senddbsy_global(this.txtdocid.Value, lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), "zwdc/main.aspx?op=modify&mid=" + this.hy_mudelid.Text + "&tableid=" + this.hy_tableid.Text + "&docid=" + this.txtdocid.Value + "&pop=1", "待办", this.hy_mudelid.Text, "待办箱", "一般", this.hy_bt.Text, "请办理", 0, this.hy_flowid.Text, this.txtnexttacheid.Value, this.hy_tableid.Text);
//给后续处理人发送即时消息(提醒)
if (this.txtisSendjstx_clr.Value == "1")
{
Hyoa_global.Sendjstx_global(this.txtdocid.Value, this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), this.hy_mudelid.Text, ls_sendbt, 0, this.hy_tableid.Text);
}
//给后续处理人发送短信(提醒)
if (this.txtisSendsms_clr.Value == "1")
{
Hyoa_global.Sendsms_global(this.txtdocid.Value, this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), cb_fsrsjh, lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), cb_jsrsjh, this.hy_mudelid.Text, ls_sendbt, 1, "", "", 0, this.hy_tableid.Text);
}
}
}
//--- 创建后续处理的处理记录+建立处理人待办事宜 ---- end
//--- 创建后续传阅记录+建立待办事宜 ---- start
string[] lv_cyrid = this.txtnextcyrid.Value.Split(new Char[] { ',' });
string[] lv_cyrname = this.txtnextcyrname.Value.Split(new Char[] { ',' });
for (var i = 0; i < lv_cyrid.Length; i++)
{
if (lv_cyrid[i].ToString() != "")
{
//建立传阅数据
Hyoa_global.Saveflowhistoryinfo_cy_global(this.txtdocid.Value, this.hy_flowid.Text, this.hy_flowname.Text, this.txtnexttacheid.Value, this.txtnexttachename.Value, lv_cyrid[i].ToString(), lv_cyrname[i].ToString(), "", System.DateTime.Now.ToString());
//待办事宜、短信、即时消息
//得到当前用户手机号
HyoaClass.Hyoa_user Hyoa_user = new HyoaClass.Hyoa_user();
string cb_fsrsjh = Hyoa_user.GetMobilebyuserid(this.Session["hyuid"].ToString());
//得到后续传阅人手机号
string cb_cyrsjh = Hyoa_user.GetMobilebyuserid(lv_cyrid[i].ToString());
string ls_sendbt;
if (this.txtnexttacheid.Value == "tache0002")
示例7: Button_Save_Click
//保存
protected void Button_Save_Click(object sender, EventArgs e)
{
if (this.Session["hyuid"].ToString() == "")
this.Response.Redirect("../login.aspx");
//HyoaClass.Hyoa_reback Hyoa_reback = new HyoaClass.Hyoa_reback();
HyoaClass.Hyoa_global Hyoa_global = new HyoaClass.Hyoa_global();
//DataTable rebackdt = Hyoa_reback.Getrebackbyfatheridandrebackuserid(this.txtfatherid.Value, "");
string[] lv_username;
string[] lv_userid;
string lsunid;
string lstxconent;
lv_userid = this.txtrebackuserid.Value.Split(',');
lv_username = this.txtrebackusername.Value.Split(',');
//HyoaClass.Hyoa_flowmain Hyoa_flowmain = new HyoaClass.Hyoa_flowmain();
for (int i = 0; i < lv_userid.Length; i++)
{ lsunid = Hyoa_global.GetRandom();
//Hyoa_reback.ID = lsunid;
//Hyoa_reback.hy_fatherid = this.txtfatherid.Value;
//Hyoa_reback.hy_senddate = System.DateTime.Now.ToShortDateString();
//Hyoa_reback.hy_senduserid = this.Session["hyuid"].ToString();
//Hyoa_reback.hy_sendusername = this.Session["hyuname"].ToString();
//Hyoa_reback.hy_rebackuserid = lv_userid[i];
//Hyoa_reback.hy_rebackusername = lv_username[i];
//Hyoa_reback.hy_rebackresion = this.txtrebackidea.Text;
//Hyoa_reback.hy_rebackdate = "";
//Hyoa_reback.hy_ifreback = "";
//Hyoa_reback.Insert();
String sql = "insert into hyt_reback(ID,hy_fatherid,hy_senddate,hy_senduserid,hy_sendusername,hy_rebackuserid,hy_rebackusername,hy_rebackresion,hy_rebackdate,hy_ifreback) values ";
if (Session["conntype"].ToString() == "SQL")
{
sql += "('" + lsunid + "','" + this.txtfatherid.Value + "','" + System.DateTime.Now.ToShortDateString() + "','" + this.Session["hyuid"].ToString() + "','" + this.Session["hyuname"].ToString() + "','" + lv_userid[i] + "','" + lv_username[i] + "','" + this.txtrebackidea.Text + "','','') ";
}
if (Session["conntype"].ToString() == "ORACLE")
{
sql += "('" + lsunid + "','" + this.txtfatherid.Value + "',to_date('" + System.DateTime.Now.ToShortDateString() + "','YYYY-MM-DD HH24:MI:SS'),'" + this.Session["hyuid"].ToString() + "','" + this.Session["hyuname"].ToString() + "','" + lv_userid[i] + "','" + lv_username[i] + "','" + this.txtrebackidea.Text + "','','') ";
}
Hyoa_global.GetDataTable(sql);
string lssqlfatherdoc = "select * from hyc_" + this.txtfathertableid.Text + " where DOCID='" + this.txtfatherid.Value + "'";
DataTable flowmaindt = Hyoa_global.GetDataTable(lssqlfatherdoc);
if (flowmaindt.Rows[0]["hy_mudelid"].ToString() == "ldps")
{
lstxconent = "领导批示件需再反馈!";
}
else
{
lstxconent = "政务督查件需再反馈!";
}
Hyoa_global.Senddbsy_global(lsunid, lv_userid[i], lv_username[i], this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), "/zwdc/main.aspx?op=modify&mid=" + flowmaindt.Rows[0]["hy_mudelid"].ToString() + "&tableid=" + flowmaindt.Rows[0]["hy_tableid"].ToString() + "&docid=" + flowmaindt.Rows[0]["DOCID"].ToString() + "&pop=1", "待阅", flowmaindt.Rows[0]["hy_mudelid"].ToString(), "待办箱", "一般", lstxconent, "请办理", 0, flowmaindt.Rows[0]["hy_flowid"].ToString(), "tache0002", this.txtfathertableid.Text);
}
string ls_tip = "保存成功!";
//处理完成后的提示及跳转
//if (this.txtifpop.Value == "")
//{
// Response.Write("<script>alert('" + ls_tip + "');window.location='" + this.txturl.Value + "'</script>");
//}
//else
//{
Response.Write("<script>var fm = window.opener.document.forms[0];fm.txtwhichoperation.value = '1';fm.btn_save.click();window.close();</script>");
//Response.Write("<script>alert('" + ls_tip + "');self.close();</script>");
//}
}
示例8: Button_Save_Click
//.........这里部分代码省略.........
if (dt_clinfo.Rows[0]["hy_clsj"].ToString() == "")
{
Hyoa_flowhistoryinfo_cl.hy_clsj = System.DateTime.Now.ToString();
}
else
{
Hyoa_flowhistoryinfo_cl.hy_clsj = dt_clinfo.Rows[0]["hy_clsj"].ToString() + "," + System.DateTime.Now.ToString();
}
Hyoa_flowhistoryinfo_cl.Update();
}
//---- 添加当前环节的处理时间 ---- end
////////////////////如果后续环节选择了“结束”,则不需要发待办事宜和短消息 start//////////////////////
HyoaClass.Hyoa_dbsy Hyoa_dbsy = new HyoaClass.Hyoa_dbsy();
if (this.txtnexttacheid.Value != "**")
{
//--- 创建后续处理的处理记录+建立处理人待办事宜 ---- start
Hyoa_global.Saveflowhistoryinfo_cl_global(this.txtdocid.Value, this.hy_flowid.Text, this.hy_flowname.Text, this.txtnexttacheid.Value, this.txtnexttachename.Value, this.txtnextclrid.Value, this.txtnextclrname.Value, "", this.txtnextcyrid.Value, this.txtnextcyrname.Value, System.DateTime.Now.ToString(), "");
//待办事宜、短信、即时消息
string[] lv_dbrid = this.txtnextclrid.Value.Split(new Char[] { ',' });
string[] lv_dbrname = this.txtnextclrname.Value.Split(new Char[] { ',' });
for (var i = 0; i < lv_dbrid.Length; i++)
{
if (lv_dbrid[i].ToString() != "")
{
//得到当前用户手机号
HyoaClass.Hyoa_user Hyoa_user = new HyoaClass.Hyoa_user();
string cb_fsrsjh = Hyoa_user.GetMobilebyuserid(this.Session["hyuid"].ToString());
//得到后续处理人手机号
string cb_jsrsjh = Hyoa_user.GetMobilebyuserid(lv_dbrid[i].ToString());
//给后续处理人发送一个新的待办事宜(提醒)
Hyoa_global.Senddbsy_global(this.txtdocid.Value, lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), "main.aspx?op=modify&mid=" + this.hy_mudelid.Text + "&tableid=" + this.hy_tableid.Text + "&docid=" + this.txtdocid.Value + "&pop=1", "待办", this.hy_mudelid.Text, "待办箱", "一般", this.hy_bt.Text, "请办理", 0, this.hy_flowid.Text, this.txtnexttacheid.Value, this.hy_tableid.Text);
//给后续处理人发送即时消息(提醒)
if (this.txtisSendjstx_clr.Value == "1")
{
Hyoa_global.Sendjstx_global(this.txtdocid.Value, this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), this.hy_mudelid.Text, this.hy_bt.Text, 0, this.hy_tableid.Text);
}
//给后续处理人发送短信(提醒)
if (this.txtisSendsms_clr.Value == "1")
{
Hyoa_global.Sendsms_global(this.txtdocid.Value, this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), cb_fsrsjh, lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), cb_jsrsjh, this.hy_mudelid.Text, this.hy_bt.Text, 1, "", "", 0, this.hy_tableid.Text);
}
}
}
//--- 创建后续处理的处理记录+建立处理人待办事宜 ---- end
//--- 创建后续传阅记录+建立待办事宜 ---- start
string[] lv_cyrid = this.txtnextcyrid.Value.Split(new Char[] { ',' });
string[] lv_cyrname = this.txtnextcyrname.Value.Split(new Char[] { ',' });
for (var i = 0; i < lv_cyrid.Length; i++)
{
if (lv_cyrid[i].ToString() != "")
{
//建立传阅数据
Hyoa_global.Saveflowhistoryinfo_cy_global(this.txtdocid.Value, this.hy_flowid.Text, this.hy_flowname.Text, this.txtnexttacheid.Value, this.txtnexttachename.Value, lv_cyrid[i].ToString(), lv_cyrname[i].ToString(), "", System.DateTime.Now.ToString());
//待办事宜、短信、即时消息
//得到当前用户手机号
HyoaClass.Hyoa_user Hyoa_user = new HyoaClass.Hyoa_user();
string cb_fsrsjh = Hyoa_user.GetMobilebyuserid(this.Session["hyuid"].ToString());
//得到后续传阅人手机号
string cb_cyrsjh = Hyoa_user.GetMobilebyuserid(lv_cyrid[i].ToString());
//给后续处理人发送一个新的待办事宜(提醒)
示例9: hylcjstscl
//流程流程结束时的特殊处理
private void hylcjstscl(string sql)
{
//流程结束给登记人发送提醒start
string cb_docid = this.txtdocid.Value;
string cb_dbrid = this.hy_djrid.Text;
string cb_dbrname = this.hy_djrname.Text;
string cb_fsrid = this.Session["hyuid"].ToString();
string cb_fsrname = this.Session["hyuname"].ToString();
string cb_url = "main.aspx?op=modify&mid=" + this.hy_mudelid.Text + "&tableid=" + this.hy_tableid.Text + "&docid=" + this.txtdocid.Value + "&pop=1";
string cb_property = "待阅";
string cb_mudelid = this.hy_mudelid.Text;
string cb_foldername = "待阅箱";
string cb_hj = "一般";
string cb_bt = this.hy_bt.Text;
string cb_subbt = "[流程已结束]";
float cb_ifyb = 0;
string cb_flowid = this.hy_flowid.Text;
string cb_tacheid = this.hy_curtacheid.Text;
string cb_from = this.hy_mudelid.Text;
//得到发送人手机号
HyoaClass.Hyoa_global Hyoa_global = new HyoaClass.Hyoa_global();
//HyoaClass.Hyoa_user Hyoa_user = new HyoaClass.Hyoa_user();
//string cb_fsrsjh = Hyoa_user.GetMobilebyuserid(cb_fsrid);
////得到接收人手机号
//string cb_jsrsjh = Hyoa_user.GetMobilebyuserid(cb_dbrid);
//给当前处理人发送一个新的待办事宜(提醒)
Hyoa_global.Senddbsy_global(cb_docid, cb_dbrid, cb_dbrname, cb_fsrid, cb_fsrname, cb_url, cb_property, cb_mudelid, cb_foldername, cb_hj, cb_bt, cb_subbt, cb_ifyb, cb_flowid, cb_tacheid, this.hy_tableid.Text);
//给当前处理人发送即时消息(提醒)
Hyoa_global.Sendjstx_global(cb_docid, cb_fsrid, cb_fsrname, cb_dbrid, cb_dbrname, cb_from, cb_bt, 0, this.hy_tableid.Text);
//流程结束给登记人发送提醒end
////会议管理的最后环节发信息提醒给登记人*****不通用start
//if (this.hy_curtacheid.Text == "tache0004" & this.hy_mudelid.Text == "hysgl" & this.hy_tableid.Text == "02548a1e-cfed-4ee5-afb4-054da97ce9a7")
//{
// hysendxx(this.hy_field7.Text, this.hy_field2.Text); //会议管理专用
//}
////会议管理的最后环节发信息提醒给登记人*****不通用end
/////物品领用,最后环节将库存减去当前领用数量start
//if (this.hy_mudelid.Text == "bgyply" & this.hy_tableid.Text == "cbe421b0-21dd-4e49-8fa7-0c0d34934304")
//{
// hywply(this.txtdocid.Value);
//}
/////物品领用,最后环节将库存减去当前领用数量end
}
示例10: DataPlay
//.........这里部分代码省略.........
if (dt_clinfo.Rows[0]["hy_clsj"].ToString() == "")
{
Hyoa_flowhistoryinfo_cl.hy_clsj = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
}
else
{
Hyoa_flowhistoryinfo_cl.hy_clsj = dt_clinfo.Rows[0]["hy_clsj"].ToString() + "," + System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
}
Hyoa_flowhistoryinfo_cl.Update();
}
//---- 添加当前环节的处理时间 ---- end
////////////////////如果后续环节选择了“结束”,则不需要发待办事宜和短消息 start//////////////////////
HyoaClass.Hyoa_dbsy Hyoa_dbsy = new HyoaClass.Hyoa_dbsy();
if (Request.Form["txtnexttacheid"].ToString() != "**")
{
//--- 创建后续处理的处理记录+建立处理人待办事宜 ---- start
Hyoa_global.Saveflowhistoryinfo_cl_global(Request.Form["txtdocid"].ToString(), Request.Form["hy_flowid"].ToString(), Request.Form["hy_flowname"].ToString(), Request.Form["txtnexttacheid"].ToString(), Request.Form["txtnexttachename"].ToString(), Request.Form["txtnextclrid"].ToString(), Request.Form["txtnextclrname"].ToString(), "", Request.Form["txtnextcyrid"].ToString(), Request.Form["txtnextcyrname"].ToString(), System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), "");
//待办事宜、短信、即时消息
string[] lv_dbrid = Request.Form["txtnextclrid"].ToString().Split(new Char[] { ',' });
string[] lv_dbrname = Request.Form["txtnextclrname"].ToString().Split(new Char[] { ',' });
for (var i = 0; i < lv_dbrid.Length; i++)
{
if (lv_dbrid[i].ToString() != "")
{
//得到当前用户手机号
HyoaClass.Hyoa_user Hyoa_user = new HyoaClass.Hyoa_user();
string cb_fsrsjh = Hyoa_user.GetMobilebyuserid(this.Session["hyuid"].ToString());
//得到后续处理人手机号
string cb_jsrsjh = Hyoa_user.GetMobilebyuserid(lv_dbrid[i].ToString());
//给后续处理人发送一个新的待办事宜(提醒)
Hyoa_global.Senddbsy_global(Request.Form["txtdocid"].ToString(), lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), "main.aspx?op=modify&mid=" + Request.Form["hy_mudelid"].ToString() + "&tableid=" + Request.Form["hy_tableid"].ToString() + "&docid=" + Request.Form["txtdocid"].ToString() + "&pop=1", "待办", Request.Form["hy_mudelid"].ToString(), "待办箱", "一般", Request.Form["hy_bt"].ToString(), "请办理", 0, Request.Form["hy_flowid"].ToString(), Request.Form["txtnexttacheid"].ToString(), Request.Form["hy_tableid"].ToString());
//给后续处理人发送即时消息(提醒)
if (Request.Form["txtisSendjstx_clr"].ToString() == "1")
{
Hyoa_global.Sendjstx_global(Request.Form["txtdocid"].ToString(), this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), Request.Form["hy_mudelid"].ToString(), Request.Form["hy_bt"].ToString(), 0, Request.Form["hy_tableid"].ToString());
}
//给后续处理人发送短信(提醒)
if (Request.Form["txtisSendsms_clr"].ToString() == "1")
{
Hyoa_global.Sendsms_global(Request.Form["txtdocid"].ToString(), this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), cb_fsrsjh, lv_dbrid[i].ToString(), lv_dbrname[i].ToString(), cb_jsrsjh, Request.Form["hy_mudelid"].ToString(), Request.Form["hy_bt"].ToString(), 1, "", "", 0, Request.Form["hy_tableid"].ToString());
}
}
}
//--- 创建后续处理的处理记录+建立处理人待办事宜 ---- end
//--- 创建后续传阅记录+建立待办事宜 ---- start
string[] lv_cyrid = Request.Form["txtnextcyrid"].ToString().Split(new Char[] { ',' });
string[] lv_cyrname = Request.Form["txtnextcyrname"].ToString().Split(new Char[] { ',' });
for (var i = 0; i < lv_cyrid.Length; i++)
{
if (lv_cyrid[i].ToString() != "")
{
//建立传阅数据
Hyoa_global.Saveflowhistoryinfo_cy_global(Request.Form["txtdocid"].ToString(), Request.Form["hy_flowid"].ToString(), Request.Form["hy_flowname"].ToString(), Request.Form["txtnexttacheid"].ToString(), Request.Form["txtnexttachename"].ToString(), lv_cyrid[i].ToString(), lv_cyrname[i].ToString(), "", System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
//待办事宜、短信、即时消息
//得到当前用户手机号
HyoaClass.Hyoa_user Hyoa_user = new HyoaClass.Hyoa_user();
string cb_fsrsjh = Hyoa_user.GetMobilebyuserid(this.Session["hyuid"].ToString());
//得到后续传阅人手机号
string cb_cyrsjh = Hyoa_user.GetMobilebyuserid(lv_cyrid[i].ToString());
//给后续处理人发送一个新的待办事宜(提醒)
示例11: DataPlay
//.........这里部分代码省略.........
hy_rdi1.Checked = true;
}
else
{
hy_rdi2.Checked = true;
}
this.hy_ktxxR.Text = dt.Rows[0]["hy_ktxx"].ToString();
this.hy_kydz.Text = dt.Rows[0]["hy_ktpz"].ToString();
this.hy_kydzid.Value = dt.Rows[0]["hy_ktpzid"].ToString();
this.hy_kydzR.Text = dt.Rows[0]["hy_ktpz"].ToString();
this.hy_kcktpjg.Text = dt.Rows[0]["hy_kcktpjg"].ToString();
this.hy_kcktpjgid.Value = dt.Rows[0]["hy_kcktpjgid"].ToString();
this.hy_kcktpjgR.Text = dt.Rows[0]["hy_kcktpjg"].ToString();
//投票状态
this.txthy_gjzt.Value = dt.Rows[0]["hy_gjzt"].ToString();
//判断该投票是否已经过期==============
if (System.DateTime.Parse(dt.Rows[0]["hy_tpjssj"].ToString()).ToString("yyyy-MM-dd") != "1900-01-01" && Convert.ToDateTime(System.DateTime.Now.ToString("yyyy-MM-dd")) > Convert.ToDateTime(System.DateTime.Parse(dt.Rows[0]["hy_tpjssj"].ToString()).ToString("yyyy-MM-dd")))
{
//将该文档设为“结束投票”
string ls_sql = "update hyk_whzx_tpgl set hy_jssj=getdate(),hy_gjzt='结束投票' where id='" + this.txtdocid.Value + "'";
db.Execute(ls_sql);
//发送待办事宜给审阅人员
string ls_dburl = "/ekp/whzx/list_tpgl_tpjg.aspx?fid=" + this.txtdocid.Value + "&mid=" + this.txtmudelid.Value + "&pop=1";
string ls_body = "[" + this.hy_bt.Text + "]的投票已结束,请查看";
//部分可查看结果人员
string[] lv_kydzid = this.hy_kcktpjgid.Value.Split('+');
string[] lv_kydzname = this.hy_kcktpjgR.Text.Split('+');
for (int ii = 0; ii < lv_kydzid.Length; ii++)
{
Hyoa_global.Senddbsy_global(this.txtdocid.Value, lv_kydzid[ii], lv_kydzname[ii], this.txtdjrid.Value,
this.txtdjr.Value, ls_dburl, "待阅", this.txtmudelid.Value, "待办箱", "一般", ls_body, "请阅读", 0, "", "");
}
}
#endregion
}
dt.Clear();
//-----隐藏控制 s-------
//结果可以查看人员的权限
//Response.Write(this.hy_kcktpjgid.Value);
if (this.hy_kcktpjgid.Value.IndexOf(this.Session["hyuid"].ToString()) > 0)
{
this.btn_jg.Visible = true;
}
if (this.txtdjrid.Value == Session["hyuid"].ToString())
{
#region 如果当前用户是登记人员
if (this.txthy_gjzt.Value == "准备投票" || this.txthy_gjzt.Value == "驳回投票" || this.txthy_gjzt.Value == "撤销投票")
{
//未提交审核,则显示保存按钮和提交按钮
this.btn_submit.Visible = true;
this.btn_tj.Visible = true;
}
else if (this.txthy_gjzt.Value == "投票中")
{
//已提交投票就不能修改字段了
NoEdit();
this.btn_js.Visible = true;
示例12: btn_tj1_Click
//提交
protected void btn_tj1_Click(object sender, EventArgs e)
{
this.txthy_tpkssj.Value = System.DateTime.Now.ToString("yyyy-MM-dd");
this.txthy_fbsj.Value = System.DateTime.Now.ToString("yyyy-MM-dd");
//更新投票表
savetj("待审投票");
//发送待办事宜给审阅人员
HyoaClass.DAO db = new HyoaClass.DAO();
HyoaClass.Hyoa_global Hyoa_global = new HyoaClass.Hyoa_global();
string sql1 = "select a.hy_userid,b.hy_username,b.hy_deptid from hyt_roleuser as a,hyt_user as b where a.hy_userid=b.hy_userid and a.hy_roleid='Role_ekp004' and hy_isenabled='是'";
DataTable dt = db.GetDataTable(sql1);
if (dt.Rows.Count > 0)
{
for (var i = 0; i < dt.Rows.Count; i++)
{
string ls_dburl = "/ekp/whzx/main_tpgl.aspx?op=modify&id=" + this.txtdocid.Value + "&mid=" + this.txtmudelid.Value + "&pop=1";
string ls_body = this.txtdjr.Value + "发起投票[" + this.hy_bt.Text + "],请审核";
Hyoa_global.Senddbsy_global(this.txtdocid.Value, dt.Rows[i]["hy_userid"].ToString(), dt.Rows[i]["hy_username"].ToString(),
this.Session["hyuid"].ToString(), this.Session["hyuname"].ToString(), ls_dburl, "待办", this.txtmudelid.Value, "待办箱", "一般", ls_body, "请审核", 0, "", "");
}
}
dt.Clear();
db.Close();
//处理完成后的提示及跳转(增加刷新附件功能)
string ls_tip = "提交审核成功!";
if (this.txtifpop.Value == "")
{
Response.Write("<script>alert('" + ls_tip + "');window.location='" + this.txturl.Value + "'</script>");
}
else
{
Response.Write("<script>alert('" + ls_tip + "');self.close();</script>");
}
}
示例13: btn_js1_Click
//结束投票
protected void btn_js1_Click(object sender, EventArgs e)
{
HyoaClass.DAO db = new HyoaClass.DAO();
string ls_sql = "update hyk_whzx_tpgl set hy_jssj=getdate(),hy_gjzt='结束投票' where id='" + this.txtdocid.Value + "'";
db.Execute(ls_sql);
//发送待办事宜给审阅人员
HyoaClass.Hyoa_global Hyoa_global = new HyoaClass.Hyoa_global();
string ls_dburl = "/ekp/whzx/list_tpgl_tpjg.aspx?fid=" + this.txtdocid.Value + "&mid=" + this.txtmudelid.Value + "&pop=1";
string ls_body = "[" + this.hy_bt.Text + "]的投票已结束,请查看";
//部分可查看结果人员
string[] lv_kydzid = this.hy_kcktpjgid.Value.Split('+');
string[] lv_kydzname = this.hy_kcktpjgR.Text.Split('+');
for (int ii = 0; ii < lv_kydzid.Length; ii++)
{
Hyoa_global.Senddbsy_global(this.txtdocid.Value, lv_kydzid[ii], lv_kydzname[ii], this.txtdjrid.Value,
this.txtdjr.Value, ls_dburl, "待阅", this.txtmudelid.Value, "待办箱", "一般", ls_body, "请阅读", 0, "", "");
}
db.Close();
//处理完成后的提示及跳转
string ls_tip = "结束投票成功!";
if (this.txtifpop.Value == "")
{
Response.Write("<script>alert('" + ls_tip + "');window.location='" + this.txturl.Value + "'</script>");
}
else
{
Response.Write("<script>alert('" + ls_tip + "');self.close();</script>");
}
}
示例14: btn_fb1_Click
//发布
protected void btn_fb1_Click(object sender, EventArgs e)
{
this.txthy_tpkssj.Value = System.DateTime.Now.ToString("yyyy-MM-dd");
this.txthy_fbsj.Value = System.DateTime.Now.ToString("yyyy-MM-dd");
savetj("投票中");
//发送待办事宜给审阅人员
HyoaClass.DAO db = new HyoaClass.DAO();
HyoaClass.Hyoa_global Hyoa_global = new HyoaClass.Hyoa_global();
string ls_dburl = "/ekp/whzx/main_tpgl_wytp.aspx?op=add&id=" + this.txtdocid.Value + "&mid=" + this.txtmudelid.Value + "&pop=1";
string ls_body = this.txtdjr.Value + "发起投票[" + this.hy_bt.Text + "],请投票";
if (this.hy_kydzid.Value == "")
{
//全体人员
string sql = "select * from hyt_user ";
DataTable dt = db.GetDataTable(sql);
if (dt.Rows.Count > 0)
{
for (var i = 0; i < dt.Rows.Count; i++)
{
Hyoa_global.Senddbsy_global(this.txtdocid.Value, dt.Rows[i]["hy_userid"].ToString(), dt.Rows[i]["hy_username"].ToString(),
this.txtdjrid.Value, this.txtdjr.Value, ls_dburl, "待办", this.txtmudelid.Value, "待办箱", "一般", ls_body, "请投票", 0, "", "");
}
}
dt.Clear();
}
else
{
//部分可投票人员
string[] lv_kydzid = this.hy_kydzid.Value.Split('+');
string[] lv_kydzname = this.hy_kydz.Text.Split('+');
for (int ii = 0; ii < lv_kydzid.Length; ii++)
{
Hyoa_global.Senddbsy_global(this.txtdocid.Value, lv_kydzid[ii], lv_kydzname[ii], this.txtdjrid.Value,
this.txtdjr.Value, ls_dburl, "待办", this.txtmudelid.Value, "待办箱", "一般", ls_body, "请投票", 0, "", "");
}
}
//发起投票积分日志
//根据UID得到该人员的部门信息
string ls_bm = "", ls_bmid = "";
string ls_sql22 = "select * from hyt_user as a,hyt_dept as b where a.hy_deptid = b.hy_deptid and hy_userid = '" + this.txtdjrid.Value + "' ";
DataTable dt2 = db.GetDataTable(ls_sql22);
if (dt2.Rows.Count > 0)
{
ls_bm = dt2.Rows[0]["hy_deptname"].ToString();
ls_bmid = dt2.Rows[0]["hy_deptid"].ToString();
}
dt2.Clear();
InsertScoresLogs(this.txtmudelid.Value, this.txtdocid.Value, this.txtdjr.Value, this.txtdjrid.Value,
ls_bm, ls_bmid, "投票积分", System.Int32.Parse(this.hy_cssz1.Value), "发起投票", "0");
//将待办事宜置为已办事宜
string ls_sql2222 = "update hyt_dbsy set hy_ifyb='1' where hy_mudelid ='" + this.txtmudelid.Value + "' and hy_subbt='请审核' and docid='" + this.txtdocid.Value + "'";
db.Execute(ls_sql2222);
db.Close();
//处理完成后的提示及跳转
string ls_tip = "发布投票成功!";
if (this.txtifpop.Value == "")
{
Response.Write("<script>alert('" + ls_tip + "');window.location='" + this.txturl.Value + "'</script>");
}
else
{
Response.Write("<script>alert('" + ls_tip + "');self.close();</script>");
}
}