Esempio n. 1
0
        public ActionResult Apply_Add()
        {
            B_Store_Info stBll   = new B_Store_Info();
            int          modelid = DataConvert.CLng(Request.Form["model_dp"]);
            string       store   = Request.Form["store_t"];
            M_CommonData CData   = conBll.SelMyStore(mu.UserName);

            if (CData == null)
            {
                CData = new M_CommonData();
            }
            //----------------------------------------
            if (string.IsNullOrEmpty(store))
            {
                function.WriteErrMsg("店铺名称不能为空"); return(Content(""));
            }
            //M_StoreStyleTable sst = sstbll.GetNewStyle(modelid);
            //if (sst.ID == 0) { function.WriteErrMsg("后台没有为该模型绑定可用的模板!"); return Content(""); }
            CData.Title            = HttpUtility.HtmlEncode(Request.Form["store_t"]);
            CData.DefaultSkins     = DataConverter.CLng(Request.Form["TempleID_Hid"]);
            CData.ModelID          = modelid;
            CData.TableName        = modBll.SelReturnModel(CData.ModelID).TableName;
            CData.Inputer          = mu.UserName;
            CData.SuccessfulUserID = mu.UserID;
            CData.Inputer          = mu.UserName;
            CData.IP = IPScaner.GetUserIP();
            DataTable dt    = fieldBll.GetModelFieldList(modelid);
            DataTable table = new Call().GetDTFromMVC(dt, Request);

            table = stBll.FillDT(CData, table);
            if (CData.GeneralID > 0)
            {
                conBll.UpdateContent(table, CData);
            }
            else
            {
                conBll.AddContent(table, CData);
            }
            return(View("StoreAuditing"));
        }
Esempio n. 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        M_Store_Info storeMod = new B_Store_Info().SelReturnModel(Mid);

        Response.Redirect("/Class_15/Default.aspx?id=" + Mid + "&isd=" + storeMod.UserName);
    }