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)
 {
     RPT.SPage = MyBind;
     if (!B_ARoleAuth.Check(ZLEnum.Auth.user, "UserManage"))
     {
         function.WriteErrMsg(Resources.L.没有权限进行此项操作);
     }
     if (!IsPostBack)
     {
         if (!string.IsNullOrEmpty(Request.QueryString["lblkey"]))
         {
             preAction = DropDownList2.SelectedValue;
             preValue  = Request.QueryString["lblkey"];
         }
         else if (!string.IsNullOrEmpty(Request.QueryString["keyWord"]))
         {
             preAction = "keyword";
             preValue  = Request.QueryString["keyWord"];
         }
         else if (DataConverter.CLng(Request.QueryString["GroupID"]) > 0)
         {
             preAction = "groupid";
             preValue  = Request.QueryString["GroupID"];
         }
         else if (PUserID > 0)
         {
             preAction = "puser";
             preValue  = PUserID.ToString();
         }
         RPT.DataBind();
         function.Script(this, "ShowOrderIcon('ID_A')");
         DPBind();
         BindProvince();
     }
 }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='ProductManage.aspx'>商城管理</a></li>  <li>加盟商管理[<a href='AddBoss.aspx?nodeid=1'>添加加盟商 </a>]</li>");
            if (!this.Page.IsPostBack)
            {
                if (Request.QueryString["type"] != null && Request.QueryString["id"] != null)
                {
                    if (Request.QueryString["type"].ToString() == "del")
                    {
                        b_Boss.GetDelete(DataConverter.CLng(Request.QueryString["id"].ToString()));
                    }
                }
                B_Node bll  = new B_Node();
                string menu = string.IsNullOrEmpty(Request.QueryString["menu"]) ? "0" : Request.QueryString["menu"].ToString();
            }
            if (!B_ARoleAuth.Check(ZLEnum.Auth.shop, "DeliverType"))
            {
                function.WriteErrMsg("没有权限进行此项操作");
            }
            DataTable dt = b_Boss.Sel();

            RPT.DataSource = dt;
            RPT.DataBind();
            string types = Request.QueryString["types"];
            string Nid   = Request.QueryString["nodeid"];

            if (types != null)
            {
                b_Boss.DelByNodeId(Convert.ToInt32(Nid));
                function.WriteSuccessMsg("删除成功!", "Bosstree.aspx");
            }
        }
Esempio n. 4
0
        public IActionResult Client_Add(M_CRMS_Client model)
        {
            if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.office, "crm"))
            {
            }

            model.ClientType = StrHelper.IdsFormat(Request.Form["ClientType"]);
            model.ID         = Mid;
            M_ModelInfo modMod  = modBll.SelReturnModel(48);
            DataTable   fieldDT = fieldBll.SelByModelID(modMod.ModelID, false);
            DataTable   table   = Call.GetDTFromMVC(fieldDT, Request);

            model.ModelID    = modMod.ModelID;
            model.ModelTable = modMod.TableName;
            model.CAdminID   = adminMod.AdminId;
            model.LinkIds    = Request.Form["LinkIds"];
            if (model.ID < 1)
            {
                model.ID = clientBll.Insert(model, table);
            }
            else
            {
                M_CRMS_Client clientMod = clientBll.SelReturnModel(Mid);
                model.ItemID  = clientMod.ItemID;
                model.CDate   = clientMod.CDate;
                model.CUserID = clientMod.CUserID;
                model.Flow    = clientMod.Flow;
                clientBll.UpdateByID(model, table);
            }
            return(WriteOK("操作成功", "ClientList"));
        }
Esempio n. 5
0
        public IActionResult ClientView()
        {
            if (Mid < 1)
            {
                return(WriteErr("未指定客户信息")); return(null);
            }
            if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.office, "crm"))
            {
                return(null);
            }
            M_CRMS_Client clientMod = new M_CRMS_Client();
            M_ModelInfo   modMod    = modBll.SelReturnModel(48);

            ViewBag.fieldDT = new B_ModelField().SelByModelID(modMod.ModelID, false, false);

            clientMod = clientBll.SelReturnModel(Mid);
            if (!string.IsNullOrEmpty(modMod.TableName) && clientMod.ItemID > 0)
            {
                ViewBag.valueDT = DBCenter.Sel(modMod.TableName, "ID=" + clientMod.ItemID);
            }
            ViewBag.conSetting = contactBll.SelPage(CPage, PSize, new F_CRMS_Contact()
            {
                ClientID = clientMod.ID
            });
            if (!string.IsNullOrEmpty(clientMod.LinkIds))
            {
                SafeSC.CheckIDSEx(clientMod.LinkIds);
                ViewBag.linkDT = DBCenter.SelWithField(clientMod.TbName, "id,ClientName AS name,phone", "ID IN (" + clientMod.LinkIds + ")");
            }
            return(View(clientMod));
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                B_Admin badmin = new B_Admin();
                if (!B_ARoleAuth.Check(ZLEnum.Auth.page, "PageModelManage"))
                {
                    function.WriteErrMsg("没有权限进行此项操作");
                }
                DataBaseList();
            }
            string menu = base.Request.QueryString["menu"];

            if (menu == "del")
            {
                int modeid = DataConverter.CLng(Request.QueryString["id"]);
                if (bll.DelModel(modeid))
                {
                    Response.Write("<script language=javascript>alert('删除成功!');location.href='UserModelManage.aspx';</script>");
                }
                else
                {
                    Response.Write("<script language=javascript>alert('删除失败!');</script>");
                }
            }
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='PageManage.aspx'>企业黄页</a></li><li class='active'>黄页申请设置<a href='UserModel.aspx'>[添加申请模型]</a></li>" + Call.GetHelp(85));
        }
Esempio n. 7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "SiteConfig"))
     {
         function.WriteErrMsg("没有权限进行此项操作");
     }
     if (!IsPostBack)
     {
         SiteName_T.Text        = SiteConfig.SiteInfo.SiteName;
         SiteTitle_T.Text       = SiteConfig.SiteInfo.SiteTitle;
         SiteUrl_T.Text         = SiteConfig.SiteInfo.SiteUrl;
         LogoUrl_T.Text         = SiteConfig.SiteInfo.LogoUrl;
         QRCode_T.Text          = SiteConfig.SiteInfo.BannerUrl;
         Webmaster_T.Text       = SiteConfig.SiteInfo.Webmaster;
         MasterPhone_T.Text     = SiteConfig.SiteInfo.MasterPhone;
         WebmasterEmail_T.Text  = SiteConfig.SiteInfo.WebmasterEmail;
         Copyright_T.Text       = SiteConfig.SiteInfo.Copyright;
         MetaKeywords_T.Text    = SiteConfig.SiteInfo.MetaKeywords;
         MetaDescription_T.Text = SiteConfig.SiteInfo.MetaDescription;
         LogoAdmin_T.Text       = SiteConfig.SiteInfo.LogoAdmin;
         LogoPlatName_T.Text    = SiteConfig.SiteInfo.LogoPlatName;
         CustomPath.Text        = CustomerPageAction.baseCustomPath;
         allSiteJS.Text         = SiteConfig.SiteInfo.AllSiteJS;
         ComName_T.Text         = SiteConfig.SiteInfo.CompanyName;
         //取://到/之间的值
         Regex rg = new Regex("(?<=(://))[.\\s\\S]*?(?=(/))", RegexOptions.IgnoreCase);
         siteurl.Text = "http://" + rg.Match(Request.Url.AbsoluteUri).Value;
         Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='SiteInfo.aspx'>系统设置</a></li><li><a href='SiteInfo.aspx'>网站配置</a></li><li class=\"active\">网站信息配置</li>" + Call.GetHelp(2));
     }
 }
Esempio n. 8
0
        public ActionResult Papers_System_Add()
        {
            if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.exam, "paper"))
            {
                return(null);
            }
            int NodeID = DataConverter.CLng(Request.QueryString["NodeID"]);
            M_Exam_Sys_Papers paperMod = paperBll.SelReturnModel(Mid);

            if (paperMod != null)
            {
                ViewBag.title = "修改试卷";
            }
            else
            {
                paperMod = new M_Exam_Sys_Papers()
                {
                    p_class = NodeID == 0 ? 1 : NodeID
                };
                ViewBag.title = "添加试卷";
                if (NodeID > 0)
                {
                    ViewBag.title += "[" + classBll.GetSelect(NodeID).C_ClassName + "]";
                }
            }
            C_TreeTlpDP treeMod = GetTreeMod();

            if (paperMod.p_class > 0)
            {
                treeMod.seled = paperMod.p_class.ToString();
            }
            ViewBag.treeMod = treeMod;
            return(View(paperMod));
        }
Esempio n. 9
0
        public ActionResult Paper_QuestionManage()
        {
            if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.exam, "paper"))
            {
                return(null);
            }
            int Pid   = DataConverter.CLng(Request.QueryString["pid"]);
            int QType = DataConverter.CLng(Request.QueryString["qtype"]);
            M_Exam_Sys_Papers paperMod = paperBll.GetSelect(Pid);
            PageSetting       setting  = questBll.SelByIDS_SPage(CPage, PSize, paperMod.QIDS, QType);

            if (setting == null)
            {
                setting = new PageSetting()
                {
                    itemCount = 0
                };
            }
            if (Request.IsAjaxRequest())
            {
                return(PartialView("Paper_QuestionManage_List", setting));
            }
            ViewBag.ptitle = StringHelper.SubStr(paperMod.p_name, 10);
            ViewBag.selids = "," + paperMod.QIDS + ",";
            return(View(setting));
        }
Esempio n. 10
0
        public IActionResult ProductRecycle()
        {
            if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.shop, "product"))
            {
                return(WriteErr("无权访问"));
            }
            Filter_Product filter = new Filter_Product()
            {
                NodeID = NodeID,
                //storeid = StoreID,
                pid        = 0,
                stype      = GetParam("stype_dp"),
                proname    = GetParam("proname"),
                adduser    = GetParam("adduser"),
                istrue     = DataConvert.CLng(GetParam("istrue_dp"), -100),
                issale     = DataConvert.CLng(GetParam("issale_dp"), -100),
                hasRecycle = 1,
                proclass   = ""
            };

            filter.special = DataConverter.CLng(GetParam("special"));
            //filter.orderSort = filter.SetSort(txtbyfilde.SelectedValue, txtbyOrder.SelectedValue);
            PageSetting setting = proBll.SelPage(CPage, PSize, filter);

            if (Request.IsAjaxRequest())
            {
                return(PartialView("Product_List", setting));
            }
            else
            {
                return(View(setting));
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (function.isAjax())
            {
                string result = "";
                string action = Request.Form["action"];
                string value  = Request.Form["value"];
                switch (action)
                {
                case "GetChild":
                    result = JsonHelper.JsonSerialDataTable(examBll.GetSelectByC_ClassId(DataConverter.CLng(value)));
                    break;

                case "Del":
                    examBll.DeleteByGroupID(DataConverter.CLng(value));
                    result = "1";
                    break;

                default:
                    break;
                }
                Response.Write(result); Response.Flush(); Response.End();
            }
            B_ARoleAuth.CheckEx(ZLEnum.Auth.content, "ContentMange");
            if (!IsPostBack)
            {
                MyBind();
                Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li> <li><a href='Papers_System_Manage.aspx'>教育模块</a></li> <li><a href='QuestionManage.aspx'>考试管理</a></li><li>科目管理<a href='AddQuestion_Class.aspx?menu=Add&C_id=0'>[添加科目]</a></li>" + Call.GetHelp(76));
            }
        }
Esempio n. 12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "DevCenter"))
                {
                    function.WriteErrMsg("你没有对该模块的访问权限");
                }
                if (!badmin.CheckSPwd(Session["Spwd"] as string))
                {
                    SPwd.Visible = true;
                }
                else
                {
                    maindiv.Visible = true;
                }
                if (Request.UrlReferrer == null || string.IsNullOrEmpty(Request.UrlReferrer.AbsoluteUri))
                {
                    function.WriteErrMsg("错误的Url或非法的请求!", "");
                }

                string dataname  = DBHelper.GetAttrByStr(SqlHelper.ConnectionString, "Initial Catalog");
                string dataname2 = DBHelper.GetAttrByStr(SqlHelper.PlugConnectionString, "Initial Catalog");

                this.DatabaseList.Items.Add(new ListItem("主数据库", dataname));
                this.DatabaseList.Items.Add(new ListItem("从数据库", dataname2));
                changedbtabledownlist();
            }
            txt_DatabaseList = DatabaseList.SelectedValue;
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='DatalistProfile.aspx'>扩展功能</a></li> <li><a href='RunSql.aspx'>开发中心</a></li><li><a href='DataAssert.aspx'>表内容批处理</a></li>" + Call.GetHelp(66));
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            int type = DataConverter.CLng(Request.QueryString["type"]);  //类型:0为网站管理员,1为店铺管理员,2为客户

            if (type == 0)
            {
                B_Admin badmin = new B_Admin();
                if (!B_ARoleAuth.Check(ZLEnum.Auth.shop, "OrderList"))
                {
                    function.WriteErrMsg("没有权限进行此项操作");
                }
            }
            else
            {
                B_User.CheckIsLogged();
            }
            int id = DataConverter.CLng(Request.QueryString["id"]);

            hforderid.Value = id.ToString();
            M_OrderList orderinfo = oll.GetOrderListByid(id);

            if (!IsPostBack)
            {
                if (orderinfo != null && orderinfo.id > 0)
                {
                    ddstate.SelectedValue = orderinfo.Developedvotes.ToString();
                    if (ddstate.SelectedValue == "1")
                    {
                        fahuo.Visible = true;
                    }
                    else
                    {
                        fahuo.Visible = false;
                    }
                }
                //类型:0为网站管理员,1为店铺管理员,2为客户
                if (type == 0 || type == 1)
                {
                    if (orderinfo.Aside != 1 && orderinfo.Settle != 1)
                    {
                        ddstate.Enabled    = true;
                        txtContent.Enabled = true;
                        btn.Enabled        = true;
                    }
                    else
                    {
                        ddstate.Enabled    = false;
                        txtContent.Enabled = false;
                        btn.Enabled        = false;
                    }
                }
                else
                {
                    ddstate.Enabled    = false;
                    txtContent.Enabled = false;
                    btn.Enabled        = false;
                }
            }
            Call.SetBreadCrumb(Master, "<li>商城管理</li><li><a href='UserOrderlist.aspx'>店铺订单</a></li><li>发票信息处理</li>");
        }
Esempio n. 14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            B_ARoleAuth.CheckEx(ZLEnum.Auth.model, "ModelEdit");
            if (function.isAjax())
            {
                string action = Request.Form["action"];
                string result = "";
                switch (action)
                {
                case "orderup":
                    M_ModelField curmod = bll.SelReturnModel(DataConverter.CLng(Request.Form["curid"]));
                    curmod.OrderID = DataConverter.CLng(Request.Form["curorder"]);
                    M_ModelField tagmod = bll.SelReturnModel(DataConverter.CLng(Request.Form["tagid"]));
                    tagmod.OrderID = DataConverter.CLng(Request.Form["tagorder"]);
                    bll.UpdateOrder(curmod, tagmod);
                    result = "1";
                    break;

                default:
                    break;
                }
                Response.Write(result); Response.Flush(); Response.End();
                return;
            }
            if (!IsPostBack)
            {
                //负数为其它固定表的模型
                if (ModelID == 0)
                {
                    function.WriteErrMsg("没有指定模块ID");
                }
                MyBind();
                Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='ContentManage.aspx'>内容管理</a></li><li><a href='ModelManage.aspx?ModelType=" + ModelType + "'>" + modelName + "</a></li><li class='active'><a href='ModelField.aspx" + Request.Url.Query + "'> 字段列表</a> " + tabNameStr + " <a id='ShowLink' class='reds' href='javascript:ShowList()'>[显示所有字段]</a> <a href='AddModelField.aspx" + Request.Url.Query + "'  class='reds'>[添加字段]</a></li>" + Call.GetHelp(63));
            }
        }
Esempio n. 15
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!B_ARoleAuth.Check(ZLEnum.Auth.content, "ComentManage"))
     {
         function.WriteErrMsg("没有权限进行此项操作");
     }
     if (function.isAjax(Request))
     {
         int flag = 0;
         if (Request.Form["action"] == "add")
         {
             flag = replyBut_Click() ? 1 : 2;
         }
         else if (Request.Form["action"] == "update")
         {
             flag = replyEdit_Click() ? 1 : 2;
         }
         Response.Write(flag); Response.Flush(); Response.End();
     }
     if (!this.IsPostBack && !string.IsNullOrEmpty(Request["ID"]))
     {
         int id = Int32.Parse(Request["ID"]);
         m_ask                   = b_ask.SelReturnModel(id);
         askName.Text           += m_ask.UserName;
         askTime.Text           += m_ask.AddTime.ToString("yyyy年MM月dd日 HH:mm");
         askContent.Text         = m_ask.Qcontent;
         this.ViewState["cType"] = "";//this.m_type.ToString();
         DataBind();
         Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='ContentManage.aspx'>内容管理</a></li><li><a href='WdCheck.aspx'>百科问答</a></li><li class='active'>问题回复</li>");
     }
 }
Esempio n. 16
0
        private string g_content; //短信内容

        protected void Page_Load(object sender, EventArgs e)
        {
            function.AccessRulo();
            B_Admin badmin = new B_Admin();

            if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "SiteConfig"))
            {
                function.WriteErrMsg("没有权限进行此项操作");
            }
            if (!this.IsPostBack)
            {
                WebSMS wsm = new WebSMS();
                g_uid     = SiteConfig.SiteOption.G_uid;
                g_eid     = SiteConfig.SiteOption.G_eid;
                g_pwd     = SiteConfig.SiteOption.G_pwd;
                g_gate_id = SiteConfig.SiteOption.G_gate_id;
                g_content = SiteConfig.SiteOption.G_content;

                this.x_uid.Value      = g_uid.ToString();
                this.x_eid.Value      = g_eid.ToString();
                this.x_pwd_md5.Value  = g_pwd.ToString();
                this.h_gate_id.Value  = g_gate_id.ToString();
                this.txtContent.Value = g_content.ToString();

                string strIdentity = wsm.GetIdentityMark(Int32.Parse(g_eid), g_uid, g_pwd, Int32.Parse(g_gate_id));
                this.Label1.Text = "当前余额:" + wsm.GetMoney(strIdentity).ToString("0.00");
                if (g_uid == "" || g_eid == "" || g_pwd == "" || g_gate_id == "")
                {
                    Response.Write("参数不全!");
                    return;
                }
            }
        }
Esempio n. 17
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "SiteConfig"))
            {
                function.WriteErrMsg("没有权限进行此项操作");
            }
            if (!IsPostBack)
            {
                Isuse.Checked      = WaterModuleConfig.WaterConfig.IsUsed;
                ThumbWidth_T.Text  = SiteConfig.ThumbsConfig.ThumbsWidth.ToString();
                ThumbHeight_T.Text = SiteConfig.ThumbsConfig.ThumbsHeight.ToString();

                RadioButtonList1.SelectedValue = WaterModuleConfig.WaterConfig.WaterClassType.ToString();
                waterType.SelectedValue        = WaterModuleConfig.WaterConfig.WaterClass.ToString();
                ILogo_UP.FileUrl        = WaterModuleConfig.WaterConfig.imgLogo;
                iAlp.Text               = WaterModuleConfig.WaterConfig.imgAlph.ToString();
                waterWord.Text          = WaterModuleConfig.WaterConfig.WaterWord.ToString();
                WordType.SelectedValue  = WaterModuleConfig.WaterConfig.WaterWordType.ToString();
                WordStyle.SelectedValue = WaterModuleConfig.WaterConfig.WaterWordStyle.ToString();
                txt_dfg.Text            = WaterModuleConfig.WaterConfig.WaterWordColor.ToString();
                localP.SelectedValue    = WaterModuleConfig.WaterConfig.lopostion;
                //PX.Text = WaterModuleConfig.WaterConfig.loX.ToString();
                //PY.Text = WaterModuleConfig.WaterConfig.loY.ToString();
                WordSize.Text       = WaterModuleConfig.WaterConfig.WaterWordSize.ToString();
                txt_waterimgs.Value = WaterModuleConfig.WaterConfig.WaterImgs;

                Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='SiteInfo.aspx'>系统设置</a></li><li><a href='SiteInfo.aspx'>网站配置</a></li><li class=\"active\">缩略图配置</li>" + Call.GetHelp(6));
            }
        }
Esempio n. 18
0
        public IActionResult OrderListInfo()
        {
            M_OrderList orderinfo = null;

            if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.shop, "order"))
            {
                return(null);
            }
            if (Mid < 1 && string.IsNullOrEmpty(RequestEx["OrderNo"]))
            {
                return(WriteErr("未指定订单"));
            }
            if (Mid > 0)
            {
                orderinfo = orderBll.GetOrderListByid(Mid);
            }
            else if (!string.IsNullOrEmpty(RequestEx["OrderNo"]))
            {
                orderinfo = orderBll.GetByOrder(RequestEx["OrderNo"], "0");
            }
            if (orderinfo == null || orderinfo.id < 1)
            {
                return(WriteErr("订单不存在"));
            }
            return(View(orderinfo));
        }
Esempio n. 19
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.page, "PageModelManage"))
                {
                    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;

                M_ModelInfo model = this.bModel.GetModelById(ModelID);
                this.HdfModelID.Value = ModelID.ToString();
                this.GetShow(field);
                Call.SetBreadCrumb(Master, "<li>后台管理</li><li>企业黄页</li><li>字段列表</li><li>修改[" + model.ModelName + "模型]字段</li>");
            }
        }
Esempio n. 20
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!B_ARoleAuth.Check(ZLEnum.Auth.shop, "TotalSale"))
     {
         function.WriteErrMsg("没有权限进行此项操作");
     }
     if (!IsPostBack)
     {
         //按支付平台和日为单位统计,必须指定结束日期
         if (!string.IsNullOrEmpty(Request.QueryString["stime"]))
         {
             SDate_T.Text = Request.QueryString["stime"];
             EDate_T.Text = Request.QueryString["etime"];
         }
         else
         {
             SDate_T.Text = STime.ToString("yyyy/MM/dd");
             EDate_T.Text = ETime.ToString("yyyy/MM/dd");
         }
         Years_Li.Text  = rpBll.Html_Date("year", STime.Year.ToString());
         Months_Li.Text = rpBll.Html_Date("month", STime.Month.ToString());
         MyBind();
         Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='ProductManage.aspx'>商城管理</a></li><li><a href='TotalSale.aspx'>按日销售统计</a></li>");
     }
 }
Esempio n. 21
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ZoomLa.Common.function.AccessRulo();
            if (!this.Page.IsPostBack)
            {
                B_Admin badmin = new B_Admin();

                if (!B_ARoleAuth.Check(ZLEnum.Auth.model, "ShopModelEdit"))
                {
                    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.GetModelByIDXML(FieldID);
                ModelID = field.ModelID;
                // M_ModelField field = this.bll.GetModelByID(ModelID.ToString(), FieldID);
                //int ModelID = field.ModelID;
                M_ModelInfo model = this.bModel.GetModelById(ModelID);
                this.lblModel.Text    = model.ModelName;
                this.HdfModelID.Value = ModelID.ToString();
                this.GetShow(field);
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            B_ARoleAuth.CheckEx(ZLEnum.Auth.content, "ContentMange");
            if (!IsPostBack)
            {
                BindDrop();
                if (string.IsNullOrEmpty(CAction) || CAction.Equals("Add"))
                {
                    ddlC_ClassId.Visible = false;
                    txtClassId.Visible   = true;
                    txtClassId.Enabled   = false;
                    txtClassId.Text      = "无所属分类";
                    if (Cid > 0)
                    {
                        txtClassId.Text = examBll.GetSelect(Cid).C_ClassName;
                    }
                }
                else if (CAction.Equals("Modify"))
                {
                    this.ddlC_ClassId.Visible = true;
                    this.txtClassId.Visible   = false;
                    M_Exam_Class examMod = examBll.GetSelect(Cid);
                    if (examMod != null && examMod.C_id > 0)
                    {
                        txtClassName.Text         = examMod.C_ClassName;
                        ddlC_ClassId.Text         = examMod.C_Classid.ToString();
                        txtC_OrderBy.Text         = examMod.C_OrderBy.ToString();
                        C_ClassType.SelectedValue = examMod.C_ClassType.ToString();
                    }
                }

                Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li> <li><a href='Papers_System_Manage.aspx'>教育模块</a></li> <li><a href='QuestionManage.aspx'>考试管理</a></li><li><a href='Question_Class_Manage.aspx'>分类管理</a></li><li>编辑分类</li>");
            }
        }
Esempio n. 23
0
        public IActionResult ContactImport_Upload()
        {
            if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.office, "crm"))
            {
            }
            var file = Request.Form.Files["file_up"];

            if (file == null)
            {
                return(WriteErr("未指定文件"));
            }
            if (file.Length < 100)
            {
                return(WriteErr("文件为空"));
            }
            string ext = Path.GetExtension(file.FileName).ToLower();

            if (ext != ".xlsx")
            {
                return(WriteErr("只允许上传xlsx文件"));
            }
            DataTable excelDT = Import_Logical.Excel_ToDT(XMLPath_Contact, file.OpenReadStream());

            //将数据直接写入数据库,或将其转换为模型再写入
            foreach (DataRow dr in excelDT.Rows)
            {
                M_CRMS_Contact model = new M_CRMS_Contact().GetModelFromReader(dr);
                contactBll.Insert(model);
            }
            return(WriteOK("联系人导入成功", "ClientImport"));
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Call.SetBreadCrumb(this.Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='UserManage.aspx'>用户管理</a></li><li> <a href='AdminManage.aspx'>管理员管理</a></li><li><a href='" + Request.RawUrl + "' >动态口令加密</a></li>");
         if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "DevCenter"))
         {
             function.WriteErrMsg("你没有对该模块的访问权限");
         }
         if (!badmin.CheckSPwd(Session["Spwd"] as string))
         {
             SPwd.Visible = true;
         }
         else
         {
             if (string.IsNullOrEmpty(SiteConfig.SiteOption.AdminKey))
             {
                 SetImgKey();
             }
             else
             {
                 Mybind();
             }
         }
     }
 }
        //B_Zone_SheetStyle bzss = new B_Zone_SheetStyle();
        protected void Page_Load(object sender, EventArgs e)
        {
            B_Admin badmin = new B_Admin();

            if (!B_ARoleAuth.Check(ZLEnum.Auth.page, "AddPageStyle"))
            {
                function.WriteErrMsg("没有权限进行此项操作");
            }
            if (!IsPostBack)
            {
                string menu = DataSecurity.FilterBadChar(Request.QueryString["menu"]);
                int    sid  = Convert.ToInt32(Request.QueryString["sid"]);
                if (menu == "edit")
                {
                    //M_Zone_SheetStyle mzs = bzss.Select(sid);
                    //this.Alias.Text = mzs.Alias;
                    //this.Lname.Text = mzs.Lname;
                    //this.ShowImg.Text = mzs.Img;
                    //this.Price.Text = mzs.Price.ToString();
                    //this.lblid.Value = mzs.ID.ToString();
                    //this.Ltype.SelectedValue = mzs.Groups.ToString();
                    //this.Button1.Text = "修改";
                    //Label1_Hid.Value = "修改样式";
                }
                else
                {
                    Label1_Hid.Value = "添加样式";
                }
                Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='PageManage.aspx'>企业黄页</a></li> <li><a href='SheetStyleManage.aspx'>黄页标签管理</a></li><li>" + Label1_Hid.Value + "</li>");
            }
        }
Esempio n. 26
0
        public void Product_Add()
        {
            if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.shop, "product"))
            {
                return;
            }
            DataTable table  = new DataTable();
            M_Product proMod = FillProductModel(ref table, proBll.GetproductByid(Mid));

            if (Mid < 1)
            {
                proMod.ID = proBll.Add(table, proMod);
                IsAddStock(proMod, DataConvert.CLng(Request.Form["Stock"]));
                //多区域价格
                SqlParameter[] sp = new SqlParameter[] { new SqlParameter("guid", Request.Form["ProGuid"]) };
                SqlHelper.ExecuteSql("UPDATE ZL_Shop_RegionPrice SET [ProID]=" + proMod.ID + " WHERE [Guid]=@guid", sp);
            }
            else
            {
                proBll.Update(table, proMod);
            }
            IsUserProduct(proMod, Request.Form["uprouids_old_hid"], Request.Form["uprouids_hid"]);
            IsNeedVerBak(proMod);
            IsHaveMaterial(proMod);
            IsHavePresent(proMod);
            Response.Redirect(CustomerPageAction.customPath + "Shop/ProductShow.aspx?ID=" + proMod.ID);
        }
Esempio n. 27
0
 protected void Page_Load(object sender, EventArgs e)
 {
     B_ARoleAuth.CheckEx(ZLEnum.Auth.content, "ContentMange");
     if (!IsPostBack)
     {
         int      id      = DataConverter.CLng(Request.QueryString["id"]);
         M_Course mcourse = bcourse.GetSelect(id);
         if (mcourse != null && mcourse.id > 0)
         {
             liCoures.Text         = "修改课程";
             txt_Courename.Text    = mcourse.CourseName;
             PYtitle.Text          = mcourse.CoureseThrun;
             txt_Code.Text         = mcourse.CoureseCode;
             hfid.Value            = mcourse.CoureseClass.ToString();
             txtClassname.Text     = GetClassname(mcourse.CoureseClass);
             txt_Creidt.Text       = mcourse.CoureseCredit.ToString();
             rblHot.Checked        = mcourse.Hot == 1 ? true : false;
             txtRemark.Text        = mcourse.CoureseRemark;
             coureId.Value         = mcourse.id.ToString();
             Button2.Enabled       = true;
             Button2.OnClientClick = "location.href='AddCourseware.aspx?CourseID=" + id + "'; return false;";
         }
         else
         {
             liCoures.Text   = "添加课程";
             Button2.Enabled = false;
         }
         Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li> <li><a href='Papers_System_Manage.aspx'>教育模块</a></li><li><a href='QuestionManage.aspx'>考试管理</a></li><li><a href='CoureseManage.aspx'>课程管理</a></li><li>" + liCoures.Text + "</li>");
         txtClassname.Enabled = false;
     }
 }
Esempio n. 28
0
        public void Product_AddToNew()
        {
            if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.shop, "product"))
            {
                return;
            }
            DataTable table  = new DataTable();
            M_Product proMod = proBll.GetproductByid(Mid);

            proMod = FillProductModel(ref table, proMod);
            //------------------
            proMod.ProCode    = B_Product.GetProCode();
            proMod.AddUser    = B_Admin.GetLogin().AdminName;
            proMod.Stock      = 0;
            proMod.AddTime    = DateTime.Now;
            proMod.UpdateTime = DateTime.Now;
            proMod.ID         = 0;
            proMod.ID         = proBll.Add(table, proMod);
            //------------------
            IsNeedVerBak(proMod);
            IsHaveMaterial(proMod);
            IsAddStock(proMod, DataConvert.CLng(Request.Form["Stock"]));
            IsUserProduct(proMod, Request.Form["uprouids_old_hid"], Request.Form["uprouids_hid"]);
            IsHavePresent(proMod);
            Response.Redirect(CustomerPageAction.customPath + "Shop/ProductShow.aspx?ID=" + proMod.ID);
        }
Esempio n. 29
0
        //根据传入的PageReg中的ID,列出用户所拥有的表(新用户申请通过,默认建立栏目中配置中处理)
        public ActionResult PageTemplate()
        {
            if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.page, "manage"))
            {
                return(null);
            }
            if (Mid == 0)
            {
                function.WriteErrMsg("未指定参数"); return(null);
            }
            //ViewBag.TempList = FileSystemObject.GetDTForTemplate();
            DataTable templist = new DataTable();

            if (Mid > 0)
            {
                M_PageReg regMod = regBll.SelReturnModel(Mid);
                templist      = tempBll.Sel(regMod.UserID);
                StyleID       = regMod.NodeStyle;
                UserID        = regMod.UserID;
                ViewBag.title = regMod.UserName;
            }
            else if (Mid == -1)//公用栏目
            {
                templist      = tempBll.Sel(Mid);
                ViewBag.title = "公用栏目";
            }
            //---------------------------------
            templist.DefaultView.RowFilter = "ParentID=0";
            VM_Recursion reMod = new VM_Recursion();

            reMod.alldt   = templist;
            reMod.dt      = templist.DefaultView.ToTable();
            ViewBag.reMod = reMod;
            return(View());
        }
Esempio n. 30
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!B_ARoleAuth.Check(ZLEnum.Auth.shop, "ProductManage"))
     {
         function.WriteErrMsg("没有权限进行此项操作");
     }
     else if (ProID < 1 && ModelID == 0)
     {
         function.WriteErrMsg("没有指定要添加内容的模型ID!");
     }
     else if (ProID < 1 && NodeID == 0)
     {
         function.WriteErrMsg("没有指定要添加内容的栏目节点ID!");
     }
     if (!IsPostBack)
     {
         ProGuid         = System.Guid.NewGuid().ToString();
         Group_Hid.Value = JsonConvert.SerializeObject(DBCenter.SelWithField("ZL_Group", "GroupID,GroupName"));
         RangeValidator1.MinimumValue = Convert.ToString(Int32.MinValue);
         RangeValidator1.MaximumValue = Convert.ToString(Int32.MaxValue);
         RangeValidator2.MinimumValue = Convert.ToString(Int32.MinValue);
         RangeValidator2.MaximumValue = Convert.ToString(Int32.MaxValue);
         RangeValidator3.MinimumValue = Convert.ToString(Int32.MinValue);
         RangeValidator3.MaximumValue = Convert.ToString(Int32.MaxValue);
         RangeValidator4.MinimumValue = Convert.ToString(Int32.MinValue);
         RangeValidator4.MaximumValue = Convert.ToString(Int32.MaxValue);
         MyBind();
     }
 }