示例#1
0
        /// <summary>
        /// 初始化服务标准信息
        /// </summary>
        private void InitData(EyouSoft.Model.CompanyStructure.ServiceTypes type)
        {
            int intRecordCount = 0;

            CurrencyPage = Utils.GetInt(Request.QueryString["Page"], 1);
            EyouSoft.IBLL.CompanyStructure.IServiceStandard         bll  = EyouSoft.BLL.CompanyStructure.ServiceStandard.CreateInstance();
            IList <EyouSoft.Model.CompanyStructure.ServiceStandard> list = bll.GetList(CompanyidAndUserid.Split('$')[0], type, intPageSize, CurrencyPage, ref intRecordCount);

            if (list != null && list.Count > 0)
            {
                this.RepeaterList.DataSource = list;
                this.RepeaterList.DataBind();
            }
            else
            {
                this.pnlNoData.Visible = true;
            }

            this.ExportPageInfo1.intPageSize    = intPageSize;
            this.ExportPageInfo1.intRecordCount = intRecordCount;
            this.ExportPageInfo1.CurrencyPage   = CurrencyPage;
            this.ExportPageInfo1.UrlParams      = Request.QueryString;
            this.ExportPageInfo1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";

            list = null;
            bll  = null;
        }
示例#2
0
        protected bool AddData()
        {
            EyouSoft.Model.CompanyStructure.ServiceStandard model = new EyouSoft.Model.CompanyStructure.ServiceStandard();
            string Content = Utils.InputText(Request.QueryString["AddValue"]);

            model.CompanyID  = CompanyidAndUserid.Split('$')[0];
            model.Content    = Content;
            model.OperatorID = CompanyidAndUserid.Split('$')[1];
            if (!String.IsNullOrEmpty(ServiceType))
            {
                switch (ServiceType)
                {
                case "1":
                    model.TypeID = EyouSoft.Model.CompanyStructure.ServiceTypes.住宿;
                    break;

                case "2":
                    model.TypeID = EyouSoft.Model.CompanyStructure.ServiceTypes.用餐;
                    break;

                case "3":
                    model.TypeID = EyouSoft.Model.CompanyStructure.ServiceTypes.景点;
                    break;

                case "4":
                    model.TypeID = EyouSoft.Model.CompanyStructure.ServiceTypes.用车;
                    break;

                case "5":
                    model.TypeID = EyouSoft.Model.CompanyStructure.ServiceTypes.导服;
                    break;

                case "6":
                    model.TypeID = EyouSoft.Model.CompanyStructure.ServiceTypes.往返大交通;
                    break;

                case "7":
                    model.TypeID = EyouSoft.Model.CompanyStructure.ServiceTypes.其他;
                    break;

                case "8":
                    model.TypeID = EyouSoft.Model.CompanyStructure.ServiceTypes.集合方式;
                    break;

                case "9":
                    model.TypeID = EyouSoft.Model.CompanyStructure.ServiceTypes.接团方式;
                    break;
                }
            }
            EyouSoft.IBLL.CompanyStructure.IServiceStandard bll = EyouSoft.BLL.CompanyStructure.ServiceStandard.CreateInstance();
            return(bll.Add(model));
        }