Example #1
0
 public static void UpdateStatusRequest(List <YC_WEBSERVICE_DTO> list)
 {
     try
     {
         YeuCauWebserviceDAO.UpdateStatusRequest(list);
         string subject = "Thông báo kết quả duyệt sử dụng webservice";
         foreach (YC_WEBSERVICE_DTO yc in list)
         {
             if (yc.TinhTrangYeuCau == 1)
             {
                 string body = "<b style='color:green'>Doanh nghiệp bạn đã được cho phép sử dụng webservice tại hệ thống của chúng tôi</b><b>Link webservice: " + ConfigurationManager.AppSettings.GetValues("ws")[0].ToString();
                 Email.sendMail(yc.Email, body, subject);
                 //   ThreadStart start=new ThreadStart(
                 //   Thread thread=new Thread(
             }
             if (yc.TinhTrangYeuCau == -1)
             {
                 string body = "<b style='color:red'>Doanh nghiệp bạn đã không được đồng ý cho phép sử dụng webservice tại hệ thống của chúng tôi</b>";
                 Email.sendMail(yc.Email, body, subject);
             }
         }
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Example #2
0
 public static void updateRequest(int ma, int tinhtrang)
 {
     try
     {
         YeuCauWebserviceDAO.updateRequest(ma, tinhtrang);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Example #3
0
 public static List <YC_WEBSERVICE_DTO> GetRequest()
 {
     try
     {
         return(YeuCauWebserviceDAO.GetRequest());
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Example #4
0
 public static int ValidateUserName(string username, string pass)
 {
     try
     {
         return(YeuCauWebserviceDAO.ValidateUserName(username, pass));
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Example #5
0
 public static int InsertYCWebService(YC_WEBSERVICE_DTO yc)
 {
     try
     {
         int kq = YeuCauWebserviceDAO.InsertYCWebService(yc);
         return(kq);
     }
     catch (Exception e)
     {
         throw e;
     }
 }