コード例 #1
0
        public ActionResult GetReportConfig()
        {
            BO_RepoConfig obj = new BussinessObject.BO_RepoConfig();

            obj = BussinessLogics.BL_RepoConfig.GetReportConfig();
            return(Json(obj, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
 public static BO_RepoConfig GetReportConfig()
 {
     using (AprosysAccountingEntities db = new AprosysAccountingEntities())
     {
         var           obj        = db.ReportConfigs.Where(x => x.active == true).FirstOrDefault();
         BO_RepoConfig _repConfig = new BussinessObject.BO_RepoConfig();
         if (obj != null)
         {
             //_repConfig.empID = obj.createdBy;
             _repConfig.title       = obj.title ?? "";
             _repConfig.address     = obj.address ?? "";
             _repConfig.detailTitle = obj.detailTitle ?? "";
             _repConfig.detail      = obj.detail ?? "";
         }
         return(_repConfig);
     }
 }