Exemplo n.º 1
0
        public IActionResult CompBaike()
        {
            M_BaikeEdit editMod = editBll.SelReturnModel(EditID);
            M_Baike     bkMod   = bkBll.SelModelByFlow(editMod.Flow);

            if (bkMod == null)
            {
                bkMod = new M_Baike();
            }
            if (editMod == null)
            {
                editMod = new M_BaikeEdit();
            }
            ViewBag.editMod = editMod;
            return(View(bkMod));
        }
        private void MyBind()
        {
            M_Baike bkMod = bkBll.SelModelByFlow(Flow);

            VerStr         = bkMod.VerStr;
            EGV.DataSource = editBll.SelBy(-100, Flow, "");
            EGV.DataBind();
        }
Exemplo n.º 3
0
        //public DataTable SelBy(int status, string flow, string skey)
        //{
        //    List<SqlParameter> sp = new List<SqlParameter>();
        //    string where = "1=1 ";
        //    if (status != -100) { where += " AND Status=" + status; }
        //    if (!string.IsNullOrEmpty(skey)) { where += " AND Tittle LIKE @skey"; sp.Add(new SqlParameter("skey", "%" + skey + "%")); }
        //    if (!string.IsNullOrEmpty(flow)) { where += " AND Flow =@flow"; sp.Add(new SqlParameter("flow", flow)); }
        //    return DBCenter.Sel(TbName, where, PK + " DESC", sp);
        //}
        /// <summary>
        /// 使用该版词条替代原有的词条
        /// </summary>
        public void Apply(int id)
        {
            B_Baike     bkBll  = new B_Baike();
            M_BaikeEdit source = SelReturnModel(id);
            M_Baike     target = bkBll.SelModelByFlow(source.Flow);

            ConverToEdit(target, source, "all");
            target.Status = 1;
            bkBll.UpdateByID(target);
        }
Exemplo n.º 4
0
        public IActionResult BKList()
        {
            ViewBag.viewDir = viewDir;
            // string VerStr { get { return DataConvert.CStr(ViewState["VerStr"]); } set { ViewState["VerStr"] = value; } }
            M_Baike     bkMod   = bkBll.SelModelByFlow(Flow);
            PageSetting setting = editBll.SelPage(CPage, PSize, new Com_Filter()
            {
                addon = Flow
            });

            //VerStr = bkMod.VerStr;
            //EGV.DataSource = editBll.SelBy(-100, Flow, "");
            //EGV.DataBind();
            return(View("BKList", setting));
        }