コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //权限判断
            PowerControl();

            UserId = this.SiteUserInfo.UserId;
            EyouSoft.BLL.SysStructure.BSys bsys = new EyouSoft.BLL.SysStructure.BSys();
            if (bsys.IsExistsMenu2(this.SiteUserInfo.SysId, EyouSoft.Model.EnumType.PrivsStructure.Menu2.资源预控_车辆预控))
            {
                this.SupplierControl1.Flag = 1;
            }
            //用车类型
            InitCarType();
            querenUrl = new EyouSoft.BLL.ComStructure.BComSetting().GetPrintUri(this.SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.用车确认单);

            #region 处理AJAX请求
            //获取ajax请求
            string doType = Utils.GetQueryStringValue("action");
            if (doType != "")
            {
                //存在ajax请求
                switch (doType)
                {
                case "save":
                    Response.Clear();
                    Response.Write(PageSave());
                    Response.End();
                    break;

                case "delete":
                    Response.Clear();
                    Response.Write(DelOperatCar());
                    Response.End();
                    break;

                case "update":
                    GetCarModel();
                    break;

                default: break;
                }
            }
            #endregion

            PageInit();
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            PowerControl();
            UserId = this.SiteUserInfo.UserId;
            EyouSoft.BLL.SysStructure.BSys bsys = new EyouSoft.BLL.SysStructure.BSys();
            if (bsys.IsExistsMenu2(this.SiteUserInfo.SysId, EyouSoft.Model.EnumType.PrivsStructure.Menu2.资源预控_游船预控))
            {
                this.SupplierControl1.Flag = 1;
                this.SupplierControl2.Flag = 1;
            }

            querenforeirnUrl = new EyouSoft.BLL.ComStructure.BComSetting().GetPrintUri(this.SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.涉外游轮确认单);
            querenchinaUrl   = new EyouSoft.BLL.ComStructure.BComSetting().GetPrintUri(this.SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.国内游轮确认单);

            #region 处理AJAX请求
            //获取ajax请求
            string doType   = Utils.GetQueryStringValue("action");
            string sourceId = Utils.GetQueryStringValue("suppId");
            if (doType != "")
            {
                //存在ajax请求
                switch (doType)
                {
                case "delete":
                    Response.Clear();
                    Response.Write(DeleteForeignShip());
                    Response.End();
                    break;

                case "update":
                    GetShipModelForeign();
                    break;

                case "save":
                    Response.Clear();
                    Response.Write(PageSaveForeign());
                    Response.End();
                    break;

                case "deleteC":
                    Response.Clear();
                    Response.Write(DeleteShipC());
                    Response.End();
                    break;

                case "updateC":
                    GetShipModelC();
                    break;

                case "saveC":
                    Response.Clear();
                    Response.Write(PageSaveC());
                    Response.End();
                    break;

                default: break;
                }
            }
            #endregion

            DataInit();
            DataInitC();
        }