예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         string CategoryURL = new SmoothEnterprise.Configuration.Parameter().CategoryURL;
         if (CategoryURL != "")
         {
             this.CategoryPath1.CategoryURL = CategoryURL;
         }
     }
     catch { }
 }
예제 #2
0
    public void StopApprove(string MId, string PId, string PapCaption, string receivername, string AppMail)
    {
        SmoothEnterprise.Web.Mail.SendMessage sendmessage1 = new SmoothEnterprise.Web.Mail.SendMessage();
        sendmessage1.Format    = SmoothEnterprise.Web.Mail.MailFormat.Html;
        sendmessage1.MessageID = new System.Guid(MId);
        sendmessage1.Paramaters.Add("PapCaption", PapCaption);     //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("PID", PId);                   //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("receivername", receivername); //加入Email 可使用的屬性

        sendmessage1.To = AppMail;                                 //給定通知人員
        SmoothEnterprise.Configuration.Parameter para = new
                                                        SmoothEnterprise.Configuration.Parameter(SmoothEnterprise.Configuration.Application.ConnectionString());
        sendmessage1.From         = para.AdministratorEMail.ToString(); //寄信From 填入系統管理者Mail
        sendmessage1.BodyEncoding = System.Text.Encoding.UTF8;
        sendmessage1.Send();                                            //寄信
    }
예제 #3
0
    //一般的通知
    public void NormalResult(string AppMail, string MId, string subject, string content, string receivername)
    {
        SmoothEnterprise.Web.Mail.SendMessage sendmessage1 = new SmoothEnterprise.Web.Mail.SendMessage();
        sendmessage1.Format    = SmoothEnterprise.Web.Mail.MailFormat.Html;
        sendmessage1.MessageID = new System.Guid(MId);
        sendmessage1.Paramaters.Add("subject", subject);           //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("content", content);           //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("receivername", receivername); //加入Email 可使用的屬性


        sendmessage1.To = AppMail; //給定通知人員
        SmoothEnterprise.Configuration.Parameter para = new
                                                        SmoothEnterprise.Configuration.Parameter(SmoothEnterprise.Configuration.Application.ConnectionString());
        sendmessage1.From         = para.AdministratorEMail.ToString(); //寄信From 填入系統管理者Mail
        sendmessage1.BodyEncoding = System.Text.Encoding.UTF8;
        sendmessage1.Send();                                            //寄信
    }
예제 #4
0
    public void RunMailProcess(string urlink, string Sname, string Smail, string Stype)
    {
        //SmoothEnterprise.Web.Mail.SendMessage sendmessage1 = new SmoothEnterprise.Web.Mail.SendMessage();
        //sendmessage1.Format = SmoothEnterprise.Web.Mail.MailFormat.Html;
        ////以下步驟需確認dgmessage 有一筆ID 為 “{D9FCE19B-BB81-4067-A05A-118DB711E765}” 的資料

        //sendmessage1.MessageID = new System.Guid("{6D2E7C2B-B009-4980-972D-E2F0EF8A887A}");

        //sendmessage1.Paramaters.Add("receivername", Sname); //加入Email 可使用的屬性
        //sendmessage1.Paramaters.Add("sendername", "*****@*****.**"); //加入Email 可使用的屬性
        //sendmessage1.Paramaters.Add("requesturl", urlink); //加入Email 可使用的屬性
        //sendmessage1.Paramaters.Add("RequestNotes", addapmt420);


        ////if(Stype=="Back")   sendmessage1.Paramaters.Add("reviewresult", "退回(退至上一關)");
        ////if (Stype == "Back")   sendmessage1.Paramaters.Add("reviewresult", "退回(退至提案人)");
        ////if (Stype == "Complete") sendmessage1.Paramaters.Add("reviewresult", "完成通知");


        //sendmessage1.To = Smail; //給定通知人員
        //SmoothEnterprise.Configuration.Parameter para = new
        //SmoothEnterprise.Configuration.Parameter(SmoothEnterprise.Configuration.Application.ConnectionString());
        //sendmessage1.From = para.AdministratorEMail.ToString(); //寄信From 填入系統管理者Mail
        //sendmessage1.Send(); //寄信


        SmoothEnterprise.Web.Mail.SendMessage sendmessage1 = new SmoothEnterprise.Web.Mail.SendMessage();
        sendmessage1.Format = SmoothEnterprise.Web.Mail.MailFormat.Html;
        //以下步驟需確認dgmessage 有一筆ID 為 “{D9FCE19B-BB81-4067-A05A-118DB711E765}” 的資料

        sendmessage1.MessageID = new System.Guid("{6D2E7C2B-B009-4980-972D-E2F0EF8A887A}");

        sendmessage1.Paramaters.Add("receivername", Sname);                 //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("sendername", "*****@*****.**"); //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("requesturl", urlink);                  //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("requestername", Stype);



        sendmessage1.To = Smail; //給定通知人員
        SmoothEnterprise.Configuration.Parameter para = new
                                                        SmoothEnterprise.Configuration.Parameter(SmoothEnterprise.Configuration.Application.ConnectionString());
        sendmessage1.From = para.AdministratorEMail.ToString(); //寄信From 填入系統管理者Mail
        sendmessage1.Send();                                    //寄信
    }
예제 #5
0
    public void RunMailMyVerify(string urlink, string Sname, string Smail, string Stype, string Fname)
    {
        SmoothEnterprise.Web.Mail.SendMessage sendmessage1 = new SmoothEnterprise.Web.Mail.SendMessage();
        sendmessage1.Format = SmoothEnterprise.Web.Mail.MailFormat.Html;
        //以下步驟需確認dgmessage 有一筆ID 為 “{D9FCE19B-BB81-4067-A05A-118DB711E765}” 的資料
        sendmessage1.MessageID = new System.Guid("{9597DBB5-1579-44EE-B1C9-AF017E6310F0}");
        sendmessage1.Paramaters.Add("reviewername", Sname);                 //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("sendername", "*****@*****.**"); //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("requesturl", urlink);                  //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("requestername", Stype);
        sendmessage1.Paramaters.Add("flowtext", Fname);


        sendmessage1.To = Smail; //給定通知人員
        SmoothEnterprise.Configuration.Parameter para = new
                                                        SmoothEnterprise.Configuration.Parameter(SmoothEnterprise.Configuration.Application.ConnectionString());
        sendmessage1.From = para.AdministratorEMail.ToString(); //寄信From 填入系統管理者Mail
        sendmessage1.Send();                                    //寄信
    }
예제 #6
0
    public void RunMailProcess2(string urlink, string Sname, string Smail, string Stype, string requestname)
    {
        SmoothEnterprise.Web.Mail.SendMessage sendmessage1 = new SmoothEnterprise.Web.Mail.SendMessage();
        sendmessage1.Format = SmoothEnterprise.Web.Mail.MailFormat.Html;
        //以下步驟需確認dgmessage 有一筆ID 為 “{D9FCE19B-BB81-4067-A05A-118DB711E765}” 的資料
        if (Stype == "Complete")
        {
            sendmessage1.MessageID = new System.Guid("{55290564-8251-43b8-bc49-2fd32ef81b5f}");
        }
        else
        {
            sendmessage1.MessageID = new System.Guid("{457df47b-6043-4355-8090-fd7adb78ba1d}");
        }
        sendmessage1.Paramaters.Add("receivername", Sname);                 //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("sendername", "*****@*****.**"); //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("requesturl", urlink);                  //加入Email 可使用的屬性

        sendmessage1.Paramaters.Add("requestername", requestname);



        if (Stype == "Back")
        {
            sendmessage1.Paramaters.Add("reviewresult", "退回(退至上一關)");
        }
        if (Stype == "Back")
        {
            sendmessage1.Paramaters.Add("reviewresult", "退回(退至提案人)");
        }
        if (Stype == "Complete")
        {
            sendmessage1.Paramaters.Add("reviewresult", "完成通知");
        }


        sendmessage1.To = Smail; //給定通知人員
        SmoothEnterprise.Configuration.Parameter para = new
                                                        SmoothEnterprise.Configuration.Parameter(SmoothEnterprise.Configuration.Application.ConnectionString());
        sendmessage1.From = para.AdministratorEMail.ToString(); //寄信From 填入系統管理者Mail
        sendmessage1.Send();                                    //寄信
    }
예제 #7
0
    public void DeputyProcess(string urlink, string Sname, string Smail, string Stype, string requename)
    {
        SmoothEnterprise.Web.Mail.SendMessage sendmessage1 = new SmoothEnterprise.Web.Mail.SendMessage();
        sendmessage1.Format = SmoothEnterprise.Web.Mail.MailFormat.Html;
        //以下步驟需確認dgmessage 有一筆ID 為 “{D9FCE19B-BB81-4067-A05A-118DB711E765}” 的資料
        sendmessage1.MessageID = new System.Guid("{056f4b37-fc52-424f-b8df-9962142a8052}");


        sendmessage1.Paramaters.Add("receivername", Sname);      //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("sendername", Stype);        //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("requesturl", urlink);       //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("requestername", requename); //加入Email 可使用的屬性



        sendmessage1.To = Smail; //給定通知人員
        SmoothEnterprise.Configuration.Parameter para = new
                                                        SmoothEnterprise.Configuration.Parameter(SmoothEnterprise.Configuration.Application.ConnectionString());
        sendmessage1.From = para.AdministratorEMail.ToString(); //寄信From 填入系統管理者Mail
        sendmessage1.Send();                                    //寄信
    }
예제 #8
0
    public void RunMailProcessH(string urlink, string Sname, string Smail, string Stype)
    {
        SmoothEnterprise.Web.Mail.SendMessage sendmessage1 = new SmoothEnterprise.Web.Mail.SendMessage();
        sendmessage1.Format = SmoothEnterprise.Web.Mail.MailFormat.Html;
        //以下步驟需確認dgmessage 有一筆ID 為 “{D9FCE19B-BB81-4067-A05A-118DB711E765}” 的資料

        sendmessage1.MessageID = new System.Guid("{34e676d7-d413-46df-9173-d6f0dc7159a1}");

        sendmessage1.Paramaters.Add("receivername", Sname);                 //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("sendername", "*****@*****.**"); //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("requesturl", urlink);                  //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("requestername", Stype);



        sendmessage1.To = Smail; //給定通知人員
        SmoothEnterprise.Configuration.Parameter para = new
                                                        SmoothEnterprise.Configuration.Parameter(SmoothEnterprise.Configuration.Application.ConnectionString());
        sendmessage1.From = para.AdministratorEMail.ToString(); //寄信From 填入系統管理者Mail
        sendmessage1.Send();                                    //寄信
    }
예제 #9
0
    /*
     *   上一關審核後,通知下一關審核者,進行審核通知
     *
     *
     */
    public void ApproveMail(string MId, string PapCaption, string PID, string AppName, string urlink,
                            string AppMail, string body)
    {
        SmoothEnterprise.Web.Mail.SendMessage sendmessage1 = new SmoothEnterprise.Web.Mail.SendMessage();
        sendmessage1.Format    = SmoothEnterprise.Web.Mail.MailFormat.Html;
        sendmessage1.MessageID = new System.Guid(MId);
        sendmessage1.Paramaters.Add("PapCaption", PapCaption); //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("PID", PID);               //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("receivername", AppName);  //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("requesturl", urlink);     //加入Email 可使用的屬性
        sendmessage1.Paramaters.Add("Body", body);

        sendmessage1.To = AppMail; //給定通知人員

        SmoothEnterprise.Configuration.Parameter para = new
                                                        SmoothEnterprise.Configuration.Parameter(SmoothEnterprise.Configuration.Application.ConnectionString());
        sendmessage1.From         = para.AdministratorEMail.ToString(); //寄信From 填入系統管理者Mail
        sendmessage1.BodyEncoding = System.Text.Encoding.UTF8;
        sendmessage1.Send();                                            //寄信



        Utility.log(0, sendmessage1.Body);
    }