Exemplo n.º 1
0
 public int SelMaxOrder()
 {
     HCQ2_Model.WGJG01 wg = (from o in db.Set <HCQ2_Model.WGJG01>() orderby o.DispOrder descending select o).
                            FirstOrDefault();
     if (null == wg)
     {
         return(0);
     }
     return(wg.DispOrder);
 }
Exemplo n.º 2
0
        public ActionResult GetNoteByRowId()
        {
            string rowid = Helper.ToString(Request["rowid"]);

            HCQ2_Model.WGJG01 wg =
                operateContext.bllSession.WGJG01.Select(s => s.RowID == rowid).FirstOrDefault();
            if (wg != null)
            {
                return(operateContext.RedirectAjax(0, wg.WGJG0104, "", ""));
            }
            return(operateContext.RedirectAjax(1, "备注信息为空~", "", ""));
        }
Exemplo n.º 3
0
        public ActionResult EditFinance(HCQ2_Model.WGJG01 model)
        {
            if (null == model)
            {
                return(operateContext.RedirectAjax(1, "数据获取失败~", "", ""));
            }
            int back = operateContext.bllSession.WGJG01.EditWGJG01(model);

            if (back > 0)
            {
                return(operateContext.RedirectAjax(0, "添加数据成功~", "", ""));
            }
            return(operateContext.RedirectAjax(1, "数据保存失败~", "", ""));
        }