protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } xmlCommonUtil = new XMLCommonUtil(); fileCommonUtil = new FileCommonUtil(); string gubun = xmlCommonUtil.GUBUN; string webGubun = xmlCommonUtil.WEB_GUBUN; bool passCheckSessionID = (gubun == "web" && webGubun != string.Empty); if (passCheckSessionID) { gubun = webGubun; } if (!(passCheckSessionID || xmlCommonUtil.CheckSessionID())) { //세션 채크함. return; } switch (gubun) { case FileCommonUtil.FILE_DOWNLOAD_GUBUN_value: fileCommonUtil.DownloadFile(); break; case FileCommonUtil.FILE_DELETE_GUBUN_value: fileCommonUtil.DeleteFile(); break; case FileCommonUtil.FILE_INFO_GUBUN_value: fileCommonUtil.GetFileInfo(); break; case FileCommonUtil.FILE_LIST_GUBUN_value: fileCommonUtil.GetFileNameList(); break; case FileCommonUtil.FILE_RENAME_GUBUN_value: fileCommonUtil.FileRename(); break; } }
public MMSFiles(string fileType, string fileDownloadBasicUrl, string fileName) { this.file_type = fileType; this.file_download_basic_url = fileDownloadBasicUrl; this.file_name = fileName; this.file_basic_local_path = @"c:\temp\"; try { this.file_basic_local_path = ConfigurationManager.AppSettings["mms"].ToString(); } catch (Exception ex) { XMLCommonUtil x = new XMLCommonUtil(); x.ResponseWriteErrorMSG("mms 경로 설정을 확인바랍니다.(appSettings)", ex); } }
public AESCipher(string key) { xmlCommonUtil = new XMLCommonUtil(); if (key == null || key == "") { try { throw new ArgumentException("The key is not null.", "key"); } catch (ArgumentException ex) { xmlCommonUtil.ResponseWriteErrorMSG("AESCipher()", ex); return; } } this.utf8Encoding = new System.Text.UTF8Encoding(); this.rijndael = new RijndaelManaged(); this.rijndael.Mode = CipherMode.ECB; this.rijndael.Padding = PaddingMode.PKCS7; this.rijndael.KeySize = 128; this.rijndael.BlockSize = 128; this.rijndael.Key = hex2Byte(key); }
public ExcelDownload() { this._httpContext = HttpContext.Current; this.xmlCommonUtil = new XMLCommonUtil(); }
private const string GUBUN_SEND_SMS = "send_sms";//or "send_public_sms"; public SendMobileMSGCommon() { this._httpContext = HttpContext.Current; this.xmlCommonUtil = new XMLCommonUtil(); this.webClient = new WebClient(); }
private const string P_TYPE_FORM_value = "form";//추후 구현할 value값 public SendEmail() { mensagem = new gmail(); this._httpContext = HttpContext.Current; this.xmlCommonUtil = new XMLCommonUtil(); }
public UploadAndPostTwitPic() { this._httpContext = HttpContext.Current; this.xmlCommonUtil = new XMLCommonUtil(); }
public FileCommonUtil() { this._httpContext = HttpContext.Current; this.xmlCommonUtil = new XMLCommonUtil(); }