예제 #1
0
 private NCPEP.Model.T_XmBeian GetModels(HttpContext context)
 {
     //Bid model = new Bid();
     NCPEP.Model.T_XmBeian model = new NCPEP.Model.T_XmBeian();
     try { model.id = int.Parse(context.Request.Form["Id"].ToString()); }
     catch { }
     NCPEP.Bll.T_XmBeian bll = new NCPEP.Bll.T_XmBeian();
     model                    = bll.GetModel(int.Parse(context.Request.Form["Id"].ToString()));
     model.beizhu             = context.Request.Form["beizhu"];
     model.changjiaozongjia   = context.Request.Form["zongjia"];
     model.chengjiaodanjia    = context.Request.Form["danjia"];
     model.churangfang        = context.Request.Form["crf"];
     model.churangfangxingzhi = context.Request.Form["crfxz"];
     model.cqleixing          = context.Request.Form["Properties"];
     model.cqname             = context.Request.Form["BidName"];
     model.cqquanshu          = context.Request.Form["Ownership"];
     model.danwei             = context.Request.Form["gmdw"];
     model.guimo              = context.Request.Form["guimo"];
     try
     {
         model.hetongjsrq = Convert.ToDateTime(DateTime.Parse(context.Request.Form["EndDate"].ToString()).ToString("yyyy年MM月dd日"));
     }
     catch { }
     try
     {
         model.hetongksrq = Convert.ToDateTime(DateTime.Parse(context.Request.Form["StartDate"].ToString()).ToString("yyyy年MM月dd日"));
     }
     catch { }
     model.jiaoyifangshi       = context.Request.Form["StandardMode"];
     model.shourangfang        = context.Request.Form["srf"];
     model.shourangfangxingzhi = context.Request.Form["srfxz"];
     model.zhifufangshi        = context.Request.Form["zffs"];
     model.orgcode             = context.Request.Form["OrgCode"];
     return(model);
 }
예제 #2
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("审核上报失败");
            }
        }
예제 #3
0
 private NCPEP.Model.T_XmBeian GetById(HttpContext context)
 {
     try
     {
         SysLogBll.Create("项目备案", "项目备案信息修改", adminUser.AdminName);
         int id = 0;
         try { id = int.Parse(context.Request.QueryString["Id"]); }
         catch { }
         NCPEP.Model.T_XmBeian model = new NCPEP.Model.T_XmBeian();
         NCPEP.Bll.T_XmBeian   bll   = new NCPEP.Bll.T_XmBeian();
         model = bll.GetModel(id);
         return(model);
     }
     catch (Exception ex)
     {
         SystemErrorPlug.ErrorRecord("时间:[" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "]类名:[" + this.GetType().Name + "],行号:[" + Component.GetLineNum().ToString() + "行],错误信息:[" + ex.Message + "]");
         return(null);
     }
 }