private void GetId() { #region Set thuoc tinh cho block_baseimage block_baseimage.ImagePath = ConfigurationManager.AppSettings["FengShuiUpload"]; block_baseimage.MinWidth = ConfigurationManager.AppSettings["minWidthCategory"]; block_baseimage.MinHeigh = ConfigurationManager.AppSettings["minHeightCategory"]; block_baseimage.MaxWidth = ConfigurationManager.AppSettings["maxWidthCategory"]; block_baseimage.MaxHeight = ConfigurationManager.AppSettings["maxHeightCategory"]; block_baseimage.MaxWidthBox = ConfigurationManager.AppSettings["maxWidthBoxCategory"]; block_baseimage.MaxHeightBox = ConfigurationManager.AppSettings["maxHeightBoxCategory"]; #endregion //get ID param genericBLL = new Generic <PNK_FengShui>(); generic2CBLL = new Generic2C <PNK_FengShui, PNK_FengShuiDesc>(); genericDescBLL = new Generic <PNK_FengShuiDesc>(); string strID = Utils.GetParameter("cid", string.Empty); this.productcategoryId = strID == string.Empty ? int.MinValue : DBConvert.ParseInt(strID); this.template_path = WebUtils.GetWebPath(); ListItem lst = null; for (int i = 1920; i < 2050; i++) { lst = new ListItem(); lst.Text = i.ToString(); lst.Value = i.ToString(); drpYear.Items.Add(lst); } }
/// <summary> /// Init page /// </summary> private void InitPage() { categoryId = Utils.GetParameter("cid", string.Empty); //switch page string pageName = Utils.GetParameter("page", "home"); switch (pageName) { case "picture": getLinkByPageName = Constant.UI.edit_picture_page; break; case "video": getLinkByPageName = Constant.UI.edit_video_page; break; } pcBll = new ProductBLL(); genericBLL = new Generic <PNK_Product>(); generic2CBLL = new Generic2C <PNK_Product, PNK_ProductDesc>(); this.template_path = WebUtils.GetWebPath(); msg_confirm_delete_item = LocalizationUtility.GetText("mesConfirmDelete"); msg_no_selected_item = LocalizationUtility.GetText("mesSelectItem"); LocalizationUtility.SetValueControl(this); BindNewsCategory(); GetMessage(); }
private void GetId() { #region Set thuoc tinh cho block_baseimage block_baseimage.ImagePath = ConfigurationManager.AppSettings["ProductCategoryUpload"]; block_baseimage.MinWidth = ConfigurationManager.AppSettings["minWidthCategory"]; block_baseimage.MinHeigh = ConfigurationManager.AppSettings["minHeightCategory"]; block_baseimage.MaxWidth = ConfigurationManager.AppSettings["maxWidthCategory"]; block_baseimage.MaxHeight = ConfigurationManager.AppSettings["maxHeightCategory"]; block_baseimage.MaxWidthBox = ConfigurationManager.AppSettings["maxWidthBoxCategory"]; block_baseimage.MaxHeightBox = ConfigurationManager.AppSettings["maxHeightBoxCategory"]; #endregion //get ID param pcBll = new ProductCategoryBLL(); genericBLL = new Generic <PNK_ProductCategory>(); generic2CBLL = new Generic2C <PNK_ProductCategory, PNK_ProductCategoryDesc>(); genericDescBLL = new Generic <PNK_ProductCategoryDesc>(); string strID = Utils.GetParameter("cid", string.Empty); this.productcategoryId = strID == string.Empty ? int.MinValue : DBConvert.ParseInt(strID); this.template_path = WebUtils.GetWebPath(); //Set default value order if (productcategoryId == int.MinValue) { txtOrder.Value = genericBLL.getOrdering().ToString(); } }
/// <summary> /// GetId /// </summary> private void GetId() { #region Set thuoc tinh cho block_baseimage block_baseimage.ImagePath = block_uploadimage.ImagePath = ConfigurationManager.AppSettings["ProductUpload"]; block_baseimage.MinWidth = ConfigurationManager.AppSettings["minWidthItem"]; block_baseimage.MinHeigh = ConfigurationManager.AppSettings["minHeightItem"]; block_baseimage.MaxWidth = ConfigurationManager.AppSettings["maxWidthItem"]; block_baseimage.MaxHeight = ConfigurationManager.AppSettings["maxHeightItem"]; block_baseimage.MaxWidthBox = ConfigurationManager.AppSettings["maxWidthBoxItem"]; block_baseimage.MaxHeightBox = ConfigurationManager.AppSettings["maxHeightBoxItem"]; block_uploadimage.CategoryId = categoryId.ToString(); block_uploadimage.Id = id; #endregion genericBLL = new Generic <PNK_Product>(); generic2CBLL = new Generic2C <PNK_Product, PNK_ProductDesc>(); genericDescBLL = new Generic <PNK_ProductDesc>(); categoryId = Utils.GetParameter("cid", string.Empty); id = Utils.GetParameter("id", string.Empty); productcategoryId = id == string.Empty ? int.MinValue : DBConvert.ParseInt(id); template_path = WebUtils.GetWebPath(); //Show tab upload file khi đã cập nhật vào bảng if (id == string.Empty) { } }
private void GetId() { #region Set thuoc tinh cho block_baseimage block_baseimage.ImagePath = ConfigurationManager.AppSettings["ProductUpload"]; block_baseimage.MinWidth = ConfigurationManager.AppSettings["minWidthCategory"]; block_baseimage.MinHeigh = ConfigurationManager.AppSettings["minHeightCategory"]; block_baseimage.MaxWidth = ConfigurationManager.AppSettings["maxWidthCategory"]; block_baseimage.MaxHeight = ConfigurationManager.AppSettings["maxHeightCategory"]; block_baseimage.MaxWidthBox = ConfigurationManager.AppSettings["maxWidthBoxCategory"]; block_baseimage.MaxHeightBox = ConfigurationManager.AppSettings["maxHeightBoxCategory"]; #endregion //get ID param genericBLL = new Generic <PNK_ProgramTour>(); generic2CBLL = new Generic2C <PNK_ProgramTour, PNK_ProgramTourDesc>(); genericDescBLL = new Generic <PNK_ProgramTourDesc>(); productID = Utils.GetParameter("cid", string.Empty); string strID = Utils.GetParameter("id", string.Empty); this.productcategoryId = strID == string.Empty ? int.MinValue : DBConvert.ParseInt(strID); this.template_path = WebUtils.GetWebPath(); }
/// <summary> /// Save location /// </summary> private int SaveBooking() { Generic <PNK_Booking> genericBLL = new Generic <PNK_Booking>(); Generic2C <PNK_Booking, PNK_BookingDesc> generic2CBLL = new Generic2C <PNK_Booking, PNK_BookingDesc>(); PNK_Booking bookingObj = new PNK_Booking(); PNK_BookingDesc bookingObjVn = new PNK_BookingDesc(); PNK_BookingDesc bookingObjEn = new PNK_BookingDesc(); //if (this.productcategoryId == int.MinValue) //{ //get data insert bookingObj = this.GetDataObjectParent(bookingObj); bookingObj.Ordering = genericBLL.getOrdering(); bookingObjVn = this.GetDataObjectChild(bookingObjVn, Constant.DB.LangId); bookingObjEn = this.GetDataObjectChild(bookingObjEn, Constant.DB.LangId_En); List <PNK_BookingDesc> lst = new List <PNK_BookingDesc>(); lst.Add(bookingObjVn); lst.Add(bookingObjEn); //excute bookingId = generic2CBLL.Insert(bookingObj, lst); return(bookingId); }
/// <summary> /// Save location /// </summary> private int SaveBooking() { Generic <PNK_Booking> genericBLL = new Generic <PNK_Booking>(); Generic2C <PNK_Booking, PNK_BookingDesc> generic2CBLL = new Generic2C <PNK_Booking, PNK_BookingDesc>(); PNK_Booking objBooking = new PNK_Booking(); PNK_BookingDesc bookingObjVn = new PNK_BookingDesc(); PNK_BookingDesc bookingObjEn = new PNK_BookingDesc(); //if (this.productcategoryId == int.MinValue) //{ //get data insert objBooking = this.GetDataObjectParent(objBooking); objBooking.Ordering = genericBLL.getOrdering(); bookingObjVn = this.GetDataObjectChild(bookingObjVn, Constant.DB.LangId); bookingObjEn = this.GetDataObjectChild(bookingObjEn, Constant.DB.LangId_En); List <PNK_BookingDesc> lst = new List <PNK_BookingDesc>(); lst.Add(bookingObjVn); lst.Add(bookingObjEn); //Giữ lại để chuyển qua form bookingresult Session["objBooking"] = objBooking; Session["lstBookingDesc"] = lst; //excute //bookingId = generic2CBLL.Insert(objBooking, lst); //Send email đến KH //if (bookingId != int.MinValue) //{ // SendEmailTempate(objBooking); //} return(bookingId); }
/// <summary> /// GetId /// </summary> private void GetId() { txtToDate.Text = DateTime.Today.ToString(); #region Set thuoc tinh cho block_baseimage block_baseimage.ImagePath = block_uploadimage.ImagePath = ConfigurationManager.AppSettings["ProductUpload"]; block_baseimage.MinWidth = ConfigurationManager.AppSettings["minWidthItem"]; block_baseimage.MinHeigh = ConfigurationManager.AppSettings["minHeightItem"]; block_baseimage.MaxWidth = ConfigurationManager.AppSettings["maxWidthItem"]; block_baseimage.MaxHeight = ConfigurationManager.AppSettings["maxHeightItem"]; block_baseimage.MaxWidthBox = ConfigurationManager.AppSettings["maxWidthBoxItem"]; block_baseimage.MaxHeightBox = ConfigurationManager.AppSettings["maxHeightBoxItem"]; block_uploadimage.CategoryId = categoryId.ToString(); block_uploadimage.Id = id; #endregion genericBLL = new Generic <PNK_Product>(); generic2CBLL = new Generic2C <PNK_Product, PNK_ProductDesc>(); genericDescBLL = new Generic <PNK_ProductDesc>(); categoryId = Utils.GetParameter("cid", string.Empty); id = Utils.GetParameter("id", string.Empty); gallerycategoryId = id == string.Empty ? int.MinValue : DBConvert.ParseInt(id); template_path = WebUtils.GetWebPath(); //Show tab upload file khi đã cập nhật vào bảng if (gallerycategoryId == int.MinValue) { block_bookingprice.Visible = false; ucMessageEmty9.MessageContent = LocalizationUtility.GetText("MessageEmty"); divProgramTour.Visible = false; ucMessageEmty8.MessageContent = LocalizationUtility.GetText("MessageEmty"); block_mapsmulti.Visible = false; ucMessageEmty7.MessageContent = LocalizationUtility.GetText("MessageEmty"); block_uploadfile.Visible = false; ucMessageEmty6.MessageContent = LocalizationUtility.GetText("MessageEmty"); block_uploadvideo.Visible = false; ucMessageEmty5.MessageContent = LocalizationUtility.GetText("MessageEmty"); block_uploadimage.Visible = false; ucMessageEmty4.MessageContent = LocalizationUtility.GetText("MessageEmty"); block_baseimage.Visible = false; ucMessageEmty3.MessageContent = LocalizationUtility.GetText("MessageEmty"); } //Set link chương trình tourr hypProgramTour.HRef = string.Format("/adm/programtour/{0}", id); block_bookingprice.ProductId = id; }
/// <summary> /// Init page /// </summary> private void InitPage() { pcBll = new ContentStaticBLL(); genericBLL = new Generic <PNK_ContentStatic>(); generic2CBLL = new Generic2C <PNK_ContentStatic, PNK_ContentStaticDesc>(); this.template_path = WebUtils.GetWebPath(); msg_confirm_delete_item = LocalizationUtility.GetText("mesConfirmDelete"); msg_no_selected_item = LocalizationUtility.GetText("mesSelectItem"); LocalizationUtility.SetValueControl(this); GetMessage(); }
/// <summary> /// Init page /// </summary> private void InitPage() { pcBll = new ProductCategoryBLL(); genericBLL = new Generic <PNK_ProductCategory>(); generic2CBLL = new Generic2C <PNK_ProductCategory, PNK_ProductCategoryDesc>(); this.template_path = WebUtils.GetWebPath(); LocalizationUtility.SetValueControl(this); msg_confirm_delete_item = LocalizationUtility.GetText("mesConfirmDelete"); msg_no_selected_item = LocalizationUtility.GetText("mesSelectItem"); GetMessage(); SetRoleMenu(); }
/// <summary> /// Init page /// </summary> private void InitPage() { categoryId = Utils.GetParameter("cid", string.Empty); pcBll = new ProductBLL(); genericBLL = new Generic <PNK_Product>(); generic2CBLL = new Generic2C <PNK_Product, PNK_ProductDesc>(); this.template_path = WebUtils.GetWebPath(); msg_confirm_delete_item = LocalizationUtility.GetText("mesConfirmDelete"); msg_no_selected_item = LocalizationUtility.GetText("mesSelectItem"); LocalizationUtility.SetValueControl(this); BindNewsCategory(); GetMessage(); }
/// <summary> /// Init page /// </summary> private void InitPage() { categoryId = Utils.GetParameter("cid", string.Empty); pcBll = new ProductBLL(); genericBLL = new Generic <PNK_Product>(); generic2CBLL = new Generic2C <PNK_Product, PNK_ProductDesc>(); this.template_path = WebUtils.GetWebPath(); msg_confirm_delete_item = LocalizationUtility.GetText("mesConfirmDelete"); msg_no_selected_item = LocalizationUtility.GetText("mesSelectItem"); LocalizationUtility.SetValueControl(this); //Bind drp hãng sản xuất BuildControl.BuildDropDownList(Constant.DB.LangId, drpBrand, UtilityLocal.List.Brand, true, " ", string.Empty); BindNewsCategory(); GetMessage(); }
/// <summary> /// Init page /// </summary> private void InitPage() { pcBll = new BookingBLL(); genericBLL = new Generic <PNK_Booking>(); generic2CBLL = new Generic2C <PNK_Booking, PNK_BookingDesc>(); this.template_path = WebUtils.GetWebPath(); msg_confirm_delete_item = LocalizationUtility.GetText("mesConfirmDelete"); msg_no_selected_item = LocalizationUtility.GetText("mesSelectItem"); LocalizationUtility.SetValueControl(this); GetMessage(); //Set default datetime DateTime now = DateTime.Now; txtFromDate.Text = string.Format("{0:dd/MM/yyyy}", new DateTime(now.Year, now.Month, 1)); txtToDate.Text = string.Format("{0:dd/MM/yyyy}", new DateTime(now.Year, now.Month, DateTime.DaysInMonth(now.Year, now.Month))); //btnSearchDatetime_ServerClick(null,null); }
private int SaveBooking(string paymentStatus) { //Get obj từ form booking PNK_Booking objBooking = Session["objBooking"] != null ? (PNK_Booking)Session["objBooking"] : null; objBooking.PaymentStatus = paymentStatus != string.Empty ? paymentStatus : string.Empty; List <PNK_BookingDesc> lstBookingDesc = Session["objBooking"] != null ? (List <PNK_BookingDesc>)Session["lstBookingDesc"] : null; //excute Generic2C <PNK_Booking, PNK_BookingDesc> generic2CBLL = new Generic2C <PNK_Booking, PNK_BookingDesc>(); bookingId = generic2CBLL.Insert(objBooking, lstBookingDesc); //Send email đến KH if (bookingId != int.MinValue) { SendEmailTempate(objBooking); } return(bookingId); }
/// <summary> /// GetId /// </summary> private void GetId() { txtToDate.Text = DateTime.Today.ToString(); #region Set thuoc tinh cho block_baseimage block_baseimage.ImagePath = block_uploadimage.ImagePath = ConfigurationManager.AppSettings["ProductUpload"]; block_baseimage.MinWidth = ConfigurationManager.AppSettings["minWidthItem"]; block_baseimage.MinHeigh = ConfigurationManager.AppSettings["minHeightItem"]; block_baseimage.MaxWidth = ConfigurationManager.AppSettings["maxWidthItem"]; block_baseimage.MaxHeight = ConfigurationManager.AppSettings["maxHeightItem"]; block_baseimage.MaxWidthBox = ConfigurationManager.AppSettings["maxWidthBoxItem"]; block_baseimage.MaxHeightBox = ConfigurationManager.AppSettings["maxHeightBoxItem"]; block_uploadimage.CategoryId = categoryId.ToString(); block_uploadimage.Id = id; #endregion genericBLL = new Generic <PNK_Product>(); generic2CBLL = new Generic2C <PNK_Product, PNK_ProductDesc>(); genericDescBLL = new Generic <PNK_ProductDesc>(); categoryId = Utils.GetParameter("cid", string.Empty); id = Utils.GetParameter("id", string.Empty); productcategoryId = id == string.Empty ? int.MinValue : DBConvert.ParseInt(id); template_path = WebUtils.GetWebPath(); //Show tab upload file khi đã cập nhật vào bảng if (id == string.Empty) { } //Set link chương trình tourr hypProgramTour.HRef = string.Format("/adm/programtour/{0}", id); block_bookingprice.ProductId = id; }