Exemple #1
0
        private void SendNotifApprovalTracking()
        {
            GeneralController gc         = new GeneralController();
            DataTable         dtreceiver = gc.Email_CDM_getdata();

            foreach (DataRow dr in dtreceiver.Rows)
            {
                DataTable dtemail = gc.report_loi_approvaltracking_detail_getdata(Convert.ToInt32(dr["USR_ID"]), dr["CTName"].ToString());
                if (dtemail.Rows.Count > 0)
                {
                    string htmltabledetail = string.Empty;
                    htmltabledetail = CreateHtmlTableApprovealTracking(dtemail);
                    if (dtemail.Rows.Count > 0)
                    {
                        string ReceiverMail = dr["Email"].ToString();
                        string ReceiverName = dr["Name"].ToString();
                        gc.sendMail(ReceiverName, ReceiverMail, htmltabledetail, "ApprovalTracking", "System", 0);
                    }
                }
            }
        }