Пример #1
0
 public static string EXCELGET(int CITYID)
 {
     try
     {
         return(CRBusinessLogicLayer.EXCEL_UPLOAD_DATA_XML_CHECK((DataTable)HttpContext.Current.Session["EXCELUPLOAD"], CITYID).GetXml());
     }
     catch (Exception)
     {
         // ignored
     }
     return(null);
 }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString.AllKeys.Contains("DTemp"))
     {
         if (Convert.ToInt32(Request.QueryString["DTemp"]) == 1)
         {
             DownloadTemplate();
         }
         else
         {
             DownloadSampleTemplate();
         }
     }
     if (Request.QueryString.AllKeys.Contains("City"))
     {
         var ExportDT = CRBusinessLogicLayer.EXCEL_UPLOAD_DATA_XML_CHECK((DataTable)HttpContext.Current.Session["EXCELUPLOAD"], Convert.ToInt32(Request.QueryString["City"])).Tables[2];
         if (ExportDT.Rows.Count > 0)
         {
             CRBusinessLogicLayer.GENERATEREPORT(ExportDT, "UPLOAD EXCEL", 1);
         }
     }
     LoginRequired = true;
 }