示例#1
0
 public ActionResult MenuAdd()
 {
     if (!string.IsNullOrEmpty(GetQuerystring("Module_ID")))
     {
         int menuid = int.Parse(GetQuerystring("Module_ID"));
         if (new ICPOS.EntityFramwork.BLL.Module().Exists(menuid))
         {
             string sql = "select * from [ICPOS].[dbo].[Module] S where Module_ID='" + menuid + "'";
             ICPOS.EntityFramwork.Model.Module MModule = DbHelperSQL.GetList <ICPOS.EntityFramwork.Model.Module>(sql)[0];
             ViewBag.MenuMod = MModule;
         }
     }
     return(View());
 }
示例#2
0
文件: Module.cs 项目: 758314080/ICPOS
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(ICPOS.EntityFramwork.Model.Module model)
 {
     return(dal.Update(model));
 }
示例#3
0
文件: Module.cs 项目: 758314080/ICPOS
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(ICPOS.EntityFramwork.Model.Module model)
 {
     return(dal.Add(model));
 }