예제 #1
0
        private string Shenhe(HttpContext context)
        {
            NCPEP.Bll.T_XmBeian   bll   = new NCPEP.Bll.T_XmBeian();
            NCPEP.Model.T_XmBeian model = new NCPEP.Model.T_XmBeian();
            string id = context.Request.QueryString["BidId"];

            model         = bll.GetModel(int.Parse(id));
            model.beiyong = "2";
            if (bll.Update(model))
            {
                return("审核上报成功");
            }
            else
            {
                return("审核上报失败");
            }
        }
예제 #2
0
        private string Update(HttpContext context)
        {
            try
            {
                SysLogBll.Create("项目备案", "更新项目备案信息", adminUser.AdminName);
                NCPEP.Model.T_XmBeian dModels = GetModels(context);
                NCPEP.Bll.T_XmBeian   bll     = new NCPEP.Bll.T_XmBeian();

                if (bll.Update(dModels))
                {
                    return("更新成功!");
                }
                else
                {
                    return("更新失败请重新操作! ");
                }
            }
            catch (Exception ex)
            {
                SystemErrorPlug.ErrorRecord("时间:[" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "]类名:[" + this.GetType().Name + "],行号:[" + Component.GetLineNum().ToString() + "行],错误信息:[" + ex.Message + "]");
                return("更新失败请重新操作,错误代码:500 ");
            }
        }