コード例 #1
0
 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_flc.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.hy_tableid.Text);
         }
     }
 }