//
 private string GetComboData()
 {
     try
     {
         SysLogBll.Create("出让标", "返回出让标combo数据操作", adminUser.AdminName);
         StringBuilder strb = new StringBuilder();
         strb.Append("[");
         DataTable dataTable = new BidDal().GetList(adminUser.OrgCode);
         for (int i = 0; i < dataTable.Rows.Count; i++)
         {
             strb.Append("{\"id\":\"" + dataTable.Rows[i]["Id"] + "\", \"text\":\"" + dataTable.Rows[i]["BidName"] + "\"}");
             if (i < dataTable.Rows.Count - 1)
             {
                 strb.Append(",");
             }
         }
         strb.Append("]");
         return(strb.ToString());
     }
     catch (Exception ex)
     {
         SystemErrorPlug.ErrorRecord("时间:[" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "]类名:[" + this.GetType().Name + "],行号:[" + Component.GetLineNum().ToString() + "行],错误信息:[" + ex.Message + "]");
         return(string.Empty);
     }
 }
Exemple #2
0
        private DataTable GetAllListByYCJBuser(HttpContext context)
        {
            try
            {
                NCPEP.Dal.BidDal dal      = new BidDal();
                string           sqlWhere = string.Empty;
                int startIndex            = 0;
                try { startIndex = int.Parse(context.Request.Form["page"]) - 1; }
                catch { }
                int pageSize = 10;
                try { pageSize = int.Parse(context.Request.Form["rows"].ToString()); }
                catch { }

                string order = "";
                if (context.Request.QueryString["BidName"] != null)
                {
                    sqlWhere += string.Format(" and BidName like '%{0}%'", context.Request.QueryString["BidName"]);
                }

                sqlWhere += " and DepaStatus ='3' and StandardMode='2' and jbzt='1'";

                if (model.JBYhm != null)
                {
                    sqlWhere += " and jbyhm='" + model.JBYhm + "'";
                }
                return(dal.GetAllListByDzjb(sqlWhere, startIndex, pageSize, order));
            }
            catch (Exception ex)
            {
                SystemErrorPlug.ErrorRecord("时间:[" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "]类名:[" + this.GetType().Name + "],行号:[" + Component.GetLineNum().ToString() + "行],错误信息:[" + ex.Message + "]");
                return(null);
            }
        }
Exemple #3
0
 public WebSiteBll()
 {
     bidPlacardDal   = new BidPlacardDal();
     newsDal         = new NewsDal();
     newsTypeDal     = new Dal.NewsTypeDal();
     webIntentionDal = new WebIntentionDal();
     webUserDal      = new WebUserDal();
     bidDal          = new BidDal();
     organizationDal = new OrganizationDal();
 }
 private string Create(HttpContext context)
 {
     try
     {
         SysLogBll.Create("标审核返回信息", "添加标审核返回信息操作", adminUser.AdminName);
         int BidId        = 0;
         int UpManager    = 0;
         int DepaStatusId = 1;
         BidId     = int.Parse(context.Request.QueryString["FK_BidId"]);
         UpManager = int.Parse(context.Request.QueryString["UpManager"]);
         string OrgCode = context.Request.QueryString["OrgCode"];
         DepaStatusId = int.Parse(context.Request.QueryString["DepaStatusId"]);
         if (UpManager == 1 || OrgCode == adminUser.OrgCode)
         {
             if (dal.Create(GetModels(context)))
             {
                 BidDal bd = new BidDal();
                 bd.UpdateState("DepaStatus", (DepaStatusId - 1), BidId);
                 bd.UpdateState("ReturnStatus", 1, BidId);
                 return("添加成功!");
             }
             else
             {
                 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 ");
     }
 }
 public AttAuditReportBll()
 {
     bidDal = new BidDal();
 }
Exemple #6
0
 public BidBll()
 {
     dal = new BidDal();
 }