Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                B_Admin badmin = new B_Admin();
                if (!B_ARoleAuth.Check(ZLEnum.Auth.model, "ModelEdit"))
                {
                    function.WriteErrMsg("没有权限进行此项操作");
                }
                if (string.IsNullOrEmpty(base.Request.QueryString["FieldID"]))
                {
                    function.WriteErrMsg("没有指定要修改字段的字段ID!");
                }
                int FieldID = DataConverter.CLng(base.Request.QueryString["FieldID"]);
                int ModelID = DataConverter.CLng(base.Request.QueryString["ModelID"]);

                this.HdfFieldID.Value = FieldID.ToString();
                M_ModelField field = this.bll.GetModelByID(ModelID.ToString(), FieldID);
                //int ModelID = field.ModelID;
                this.m_mdid = ModelID.ToString();
                M_ModelInfo model = this.bModel.GetModelById(ModelID);
                this.Literal1.Text    = model.ModelName;
                Label1.Text           = "当前表:" + model.TableName;
                this.HdfModelID.Value = ModelID.ToString();
                this.GradeOptionType_Cate.DataSource     = B_GradeOption.GetCateList();
                this.GradeOptionType_Cate.DataTextField  = "CateName";
                this.GradeOptionType_Cate.DataValueField = "CateID";
                this.GradeOptionType_Cate.DataBind();
                this.GradeOptionType_Cate.Items.Insert(0, new ListItem("选择多级选项分类", "0"));
                this.GetShow(field);
                Call.SetBreadCrumb(Master, "<li>后台管理</li><li>企业黄页</li><li><a href='/manage/Page/PageModelManage.aspx'>模型管理</a></li><li>修改[" + model.ModelName + "模型]字段</li>");
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         B_Admin badmin = new B_Admin();
         if (!B_ARoleAuth.Check(ZLEnum.Auth.model, "AddPageModel"))
         {
             function.WriteErrMsg("没有权限进行此项操作");
         }
         if (string.IsNullOrEmpty(base.Request.QueryString["ModelID"]))
         {
             function.WriteErrMsg("没有指定要添加字段的模型ID!");
         }
         int ModelID = DataConverter.CLng(base.Request.QueryString["ModelID"]);
         this.HdfModelID.Value = ModelID.ToString();
         M_ModelInfo model = this.bModel.GetModelById(ModelID);
         this.HdfTableName.Value = model.TableName;
         this.GradeOptionType_Cate.DataSource     = B_GradeOption.GetCateList();
         this.GradeOptionType_Cate.DataTextField  = "CateName";
         this.GradeOptionType_Cate.DataValueField = "CateID";
         this.GradeOptionType_Cate.DataBind();
         this.GradeOptionType_Cate.Items.Insert(0, new ListItem("选择多级选项分类", "0"));
         Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='PageManage.aspx'>企业黄页</a></li><li><a href='UserModelManage.aspx'>黄页申请设置</a></li><li><a href='UserModelField.aspx?ModelID=" + Request.QueryString["ModelID"] + "'>样式字段列表</a></li><li class='active'>添加[" + model.ModelName + "]字段</li>");
     }
 }
        protected void BindClass()
        {
            DataTable dt = B_GradeOption.GetCateList();

            classification_D.DataSource = dt;
            classification_D.DataBind();
            classification_D.Items.Insert(0, new ListItem("请选择分类", ""));
        }
Esempio n. 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         this.GradeOptionType_Cate.DataSource     = B_GradeOption.GetCateList();
         this.GradeOptionType_Cate.DataTextField  = "CateName";
         this.GradeOptionType_Cate.DataValueField = "CateID";
         this.GradeOptionType_Cate.DataBind();
         this.GradeOptionType_Cate.Items.Insert(0, new ListItem("选择多级选项分类", "0"));
     }
     Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='ProductManage.aspx'>商城管理</a></li><li><a href='SystemOrderModel.aspx?Type=" + Request.QueryString["Type"] + "'>订单模型管理</a></li><li class='active'>添加系统订单字段</li>");
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            B_Admin badmin = new B_Admin();

            if (string.IsNullOrEmpty(base.Request.QueryString["FieldID"]))
            {
                function.WriteErrMsg("没有指定要修改字段的字段ID!");
            }
            if (!this.Page.IsPostBack)
            {
                int FieldID = DataConverter.CLng(base.Request.QueryString["FieldID"]);
                this.HdfFieldID.Value = FieldID.ToString();
                M_OrderBaseField field = this.bll.GetSelect(FieldID);

                this.GradeOptionType_Cate.DataSource     = B_GradeOption.GetCateList();
                this.GradeOptionType_Cate.DataTextField  = "CateName";
                this.GradeOptionType_Cate.DataValueField = "CateID";
                this.GradeOptionType_Cate.DataBind();
                this.GradeOptionType_Cate.Items.Insert(0, new ListItem("选择多级选项分类", "0"));
                this.GetShow(field);
            }
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='ProductManage.aspx'>商城管理</a></li><li><a href='SystemOrderModel.aspx?Type=" + Request.QueryString["Type"] + "'>订单模型管理</a></li><li class='active'>修改系统订单字段</li>");
        }
Esempio n. 6
0
 private void dBind()
 {
     this.EGV.DataSource   = B_GradeOption.GetCateList();
     this.EGV.DataKeyNames = new string[] { "CateID" };
     this.EGV.DataBind();
 }