Exemple #1
0
 public void SubmitForm(ProfileOperationsCompanyEntity companyEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         companyEntity.Modify(keyValue);
         service.Update(companyEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改作业公司【" + companyEntity.CompanyName + "】成功!");
         }
         catch { }
     }
     else
     {
         companyEntity.Create();
         service.Insert(companyEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建作业公司【" + companyEntity.CompanyName + "】成功!");
         }
         catch { }
     }
 }
Exemple #2
0
 public void SubmitForm(ModuleEntity moduleEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         moduleEntity.Modify(keyValue);
         service.Update(moduleEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改菜单信息【" + moduleEntity.F_FullName + "】成功!");
         }
         catch { }
     }
     else
     {
         moduleEntity.Create();
         service.Insert(moduleEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建菜单信息【" + moduleEntity.F_FullName + "】成功!");
         }
         catch { }
     }
 }
Exemple #3
0
        /// <summary>
        /// 提交,修改
        /// </summary>
        /// <param name="tandasEntity"></param>
        /// <param name="keyValue"></param>
        public void SubmitForm(ProfileSanitationGarbageBoxEntity GarBoxEntity, string keyValue)
        {
            if (!string.IsNullOrEmpty(keyValue))
            {
                GarBoxEntity.Modify(keyValue);

                service.Update(GarBoxEntity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改环卫垃圾箱房信息【" + GarBoxEntity.Address + "】成功!");
                }
                catch { }
            }
            else
            {
                GarBoxEntity.Create();

                service.Insert(GarBoxEntity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建环卫垃圾箱房信息【" + GarBoxEntity.Address + "】成功!");
                }
                catch { }
            }
        }
        /// <summary>
        /// 添加修改 评分标准
        /// </summary>
        /// <param name="Entity"></param>
        /// <param name="keyValue"></param>
        /// <param name="Relevance"></param>
        /// <param name="Options"></param>
        public void SubmitNormForm(ProfileGrading_NormEntity Entity, string keyValue)
        {
            if (!string.IsNullOrEmpty(keyValue))
            {
                Entity.Modify(keyValue);

                this.GNorms.Update(Entity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "新建成功", "新建评分标准信息【" + Entity.Describe + "】成功!");
                }
                catch { }
            }
            else
            {
                Entity.Create();

                this.GNorms.Insert(Entity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建评分标准信息【" + Entity.Describe + "】成功!");
                }
                catch { }
            }
        }
        /// <summary>
        /// 提交,修改
        /// </summary>
        /// <param name="tandasEntity"></param>
        /// <param name="keyValue"></param>
        public void SubmitForm(ProfileMainWayEntity mainWayEntity, string keyValue)
        {
            if (!string.IsNullOrEmpty(keyValue))
            {
                mainWayEntity.Modify(keyValue);

                service.Update(mainWayEntity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改环卫主路信息【" + mainWayEntity.MainWayName + "】成功!");
                }
                catch { }
            }
            else
            {
                mainWayEntity.Create();

                service.Insert(mainWayEntity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建环卫主路信息【" + mainWayEntity.MainWayName + "】成功!");
                }
                catch { }
            }
        }
Exemple #6
0
 public void SubmitForm(ItemsDetailEntity itemsDetailEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         itemsDetailEntity.Modify(keyValue);
         service.Update(itemsDetailEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改数据字典信息【" + itemsDetailEntity.F_ItemName + "】成功!");
         }
         catch { }
     }
     else
     {
         itemsDetailEntity.Create();
         service.Insert(itemsDetailEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建数据字典信息【" + itemsDetailEntity.F_ItemName + "】成功!");
         }
         catch { }
     }
 }
Exemple #7
0
 public void SubmitForm(ProfileProjectEntity productEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         productEntity.Modify(keyValue);
         service.Update(productEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改项目【" + productEntity.ProjectName + "】成功!");
         }
         catch { }
     }
     else
     {
         productEntity.Create();
         service.Insert(productEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建项目【" + productEntity.ProjectName + "】成功!");
         }
         catch { }
     }
 }
        /// <summary>
        /// 修改添加
        /// </summary>
        /// <param name="cityEntity"></param>
        /// <param name="keyValue"></param>
        public void SubmitForm(ProfileStreetEntity streetEntity, string keyValue)
        {
            if (!string.IsNullOrEmpty(keyValue))
            {
                streetEntity.Modify(keyValue);

                service.Update(streetEntity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改街道信息【" + streetEntity.StreetName + "】成功!");
                }
                catch { }
            }
            else
            {
                streetEntity.Create();

                service.Insert(streetEntity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建街道信息【" + streetEntity.StreetName + "】成功!");
                }
                catch { }
            }
        }
 public void SubmitForm(OrganizeEntity organizeEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         organizeEntity.Modify(keyValue);
         service.Update(organizeEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改组织机构信息【" + organizeEntity.F_FullName + "】成功!");
         }
         catch { }
     }
     else
     {
         organizeEntity.Create();
         service.Insert(organizeEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建组织机构信息【" + organizeEntity.F_FullName + "】成功!");
         }
         catch { }
     }
 }
        /// <summary>
        /// 提交,修改
        /// </summary>
        /// <param name="tandasEntity"></param>
        /// <param name="keyValue"></param>
        public void SubmitForm(ProfileSanitationCompressionStationEntity compressStatEntity, string keyValue)
        {
            if (!string.IsNullOrEmpty(keyValue))
            {
                compressStatEntity.Modify(keyValue);

                service.Update(compressStatEntity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改环卫压缩站信息【" + compressStatEntity.StationName + "】成功!");
                }
                catch { }
            }
            else
            {
                compressStatEntity.Create();

                service.Insert(compressStatEntity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建环卫压缩站信息【" + compressStatEntity.StationName + "】成功!");
                }
                catch { }
            }
        }
        /// <summary>
        /// 提交,修改
        /// </summary>
        /// <param name="tandasEntity"></param>
        /// <param name="keyValue"></param>
        public void SubmitForm(ProfileAmenitiesSquareEntity Entity, string keyValue)
        {
            if (!string.IsNullOrEmpty(keyValue))
            {
                Entity.Modify(keyValue);

                service.Update(Entity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改环卫公共广场信息【" + Entity.SquareName + "】成功!");
                }
                catch { }
            }
            else
            {
                Entity.Create();

                service.Insert(Entity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建环卫公共广场信息【" + Entity.SquareName + "】成功!");
                }
                catch { }
            }
        }
Exemple #12
0
        /// <summary>
        /// 提交,修改
        /// </summary>
        /// <param name="tandasEntity"></param>
        /// <param name="keyValue"></param>
        public void SubmitForm(ProfileSanitationTandasEntity tandasEntity, string keyValue)
        {
            if (!string.IsNullOrEmpty(keyValue))
            {
                tandasEntity.Modify(keyValue);

                service.Update(tandasEntity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改环卫公厕信息【" + tandasEntity.Address + "】成功!");
                }
                catch { }
            }
            else
            {
                tandasEntity.Create();

                service.Insert(tandasEntity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建环卫公厕信息【" + tandasEntity.Address + "】成功!");
                }
                catch { }
            }
        }
 public void SubmitForm(ProfileOperationsVehicleTypeEntity vehicleEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         vehicleEntity.Modify(keyValue);
         service.Update(vehicleEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改作业车辆【" + vehicleEntity.VehicleTypeName + "】成功!");
         }
         catch { }
     }
     else
     {
         vehicleEntity.Create();
         service.Insert(vehicleEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建作业车辆【" + vehicleEntity.VehicleTypeName + "】成功!");
         }
         catch { }
     }
 }
 /// <summary>
 ///修改/添加
 /// </summary>
 /// <param name="HouseEntity"></param>
 /// <param name="keyValue"></param>
 public void SubmitForm(ERPNFormEntity HouseEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         HouseEntity.Modify(keyValue);
         service.Update(HouseEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改表单模板为【" + HouseEntity.FormName + "】成功!");
         }
         catch { }
     }
     else
     {
         HouseEntity.Create();
         service.Insert(HouseEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Create.ToString(), "新建成功", "新建表单模板【" + HouseEntity.FormName + "】成功!");
         }
         catch { }
     }
 }
Exemple #15
0
 public void SubmitForm(RoleEntity roleEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         roleEntity.Modify(keyValue);
         service.Update(roleEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改岗位信息【" + roleEntity.F_FullName + "】成功!");
         }
         catch { }
     }
     else
     {
         roleEntity.Create();
         roleEntity.F_Category = 2;
         service.Insert(roleEntity);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建岗位信息【" + roleEntity.F_FullName + "】成功!");
         }
         catch { }
     }
 }
        /// <summary>
        /// 修改添加
        /// </summary>
        /// <param name="cityEntity"></param>
        /// <param name="keyValue"></param>
        public void SubmitForm(ProfileCountyEntity countyEntity, string keyValue)
        {
            if (!string.IsNullOrEmpty(keyValue))
            {
                countyEntity.Modify(keyValue);

                string sql         = "SELECT * FROM ProfileProject WHERE CityId='" + countyEntity.CityId + "' AND CountyId='" + countyEntity.F_Id + "'";
                var    projectData = this.projectApp.FildSql(sql);

                foreach (var item in projectData)
                {
                    item.ProjectName = countyEntity.CountyName + item.ProjectTypeName;

                    this.projectApp.SubmitForm(item, item.F_Id);
                }

                service.Update(countyEntity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改区县信息【" + countyEntity.CountyName + "】成功!");
                }
                catch { }
            }
            else
            {
                countyEntity.Create();

                countyEntity.Create();


                //创建此区县下三个项目
                string sql = "select * from Sys_ItemsDetail,Sys_Items where Sys_Items.F_Id = Sys_ItemsDetail.F_ItemId and Sys_Items.F_EnCode ='ProfileProduct'";
                List <ItemsDetailEntity> ItemsDetailEntityList = itemsDetailApp.FildSql(sql);
                ProfileProjectEntity     project = null;
                foreach (var item in ItemsDetailEntityList)
                {
                    project                 = new ProfileProjectEntity();
                    project.CityId          = countyEntity.CityId;
                    project.CountyId        = countyEntity.F_Id;
                    project.ProjectType     = item.F_ItemCode;
                    project.ProjectTypeName = item.F_ItemName;
                    project.ProjectName     = countyEntity.CountyName + item.F_ItemName;

                    this.projectApp.SubmitForm(project, string.Empty);
                }

                service.Insert(countyEntity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建区县信息【" + countyEntity.CountyName + "】成功!");
                }
                catch { }
            }
        }
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="keyValue"></param>
 public void DeleteForm(string keyValue)
 {
     GType.DeleteForm(keyValue);
     try
     {
         //添加日志
         LogMess.addLog(DbLogType.Delete.ToString(), "删除成功", "删除评分标准信息【" + GetForm(keyValue).Name + "】成功!");
     }
     catch { }
 }
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="keyValue"></param>
 public void DeleteForm(string keyValue)
 {
     service.Delete(GetForm(keyValue));
     try
     {
         //添加日志
         LogMess.addLog(DbLogType.Delete.ToString(), "删除成功", "删除绿色账户小区【" + GetForm(keyValue).ResidentialName + "】成功!");
     }
     catch { }
 }
Exemple #19
0
 public void UpdateForm(UserEntity userEntity)
 {
     service.Update(userEntity);
     try
     {
         //添加日志
         LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改用户信息【" + userEntity.F_RealName + "】成功!");
     }
     catch { }
 }
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="keyValue"></param>
 public void DeleteNormForm(string keyValue)
 {
     GNorms.Delete(GetNormForm(keyValue));
     try
     {
         //添加日志
         LogMess.addLog(DbLogType.Delete.ToString(), "删除成功", "删除评分标准信息【" + GetNormForm(keyValue).Describe + "】成功!");
     }
     catch { }
 }
Exemple #21
0
 public void DeleteForm(string keyValue)
 {
     try
     {
         //添加日志
         LogMess.addLog(DbLogType.Delete.ToString(), "删除成功", "删除数据字典信息【" + GetForm(keyValue).F_ItemName + "】成功!");
     }
     catch { }
     service.Delete(t => t.F_Id == keyValue);
 }
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="keyValue"></param>
 public void DeleteForm(string keyValue)
 {
     service.Delete(GetForm(keyValue));
     try
     {
         //添加日志
         LogMess.addLog(DbLogType.Delete.ToString(), "删除成功", "删除市容公共广场信息【" + GetForm(keyValue).SquareName + "】成功!");
     }
     catch { }
 }
Exemple #23
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="keyValue"></param>
 public void DeleteEntryForm(string keyValue)
 {
     entryService.Delete(GetEntryForm(keyValue));
     try
     {
         //添加日志
         LogMess.addLog(DbLogType.Delete.ToString(), "删除成功", "删除评分标准中信息【" + GetEntryForm(keyValue).Name + "】成功!");
     }
     catch { }
 }
Exemple #24
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="keyValue"></param>
 public void DeleteForm(string keyValue)
 {
     service.Delete(GetForm(keyValue));
     try
     {
         //添加日志
         LogMess.addLog(DbLogType.Delete.ToString(), "删除成功", "删除环卫公厕信息【" + GetForm(keyValue).Address + "】成功!");
     }
     catch { }
 }
Exemple #25
0
 public void DeleteForm(string keyValue)
 {
     service.DeleteForm(keyValue);
     try
     {
         //添加日志
         LogMess.addLog(DbLogType.Delete.ToString(), "删除成功", "删除角色信息【" + GetForm(keyValue).F_FullName + "】成功!");
     }
     catch { }
 }
 /// <summary>
 /// 修改
 /// </summary>
 /// <param name="userEntity"></param>
 public void UpdateForm(ProfileCountyEntity countyEntity)
 {
     service.Update(countyEntity);
     try
     {
         //添加日志
         LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改用户信息【" + countyEntity.CountyName + "】成功!");
     }
     catch { }
 }
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="userEntity"></param>
        public void UpdateForm(ProfileStreetEntity streetEntity)
        {
            streetEntity.Modify(streetEntity.F_Id);

            service.Update(streetEntity);
            try
            {
                //添加日志
                LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改街道信息【" + streetEntity.StreetName + "】成功!");
            }
            catch { }
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="keyValue"></param>
        public void DeleteForm(string keyValue)
        {
            var udateModel = GetForm(keyValue);

            udateModel.F_DeleteMark = true;
            service.Update(udateModel);
            try
            {
                //添加日志
                LogMess.addLog(DbLogType.Delete.ToString(), "删除成功", "删除区县信息【" + GetForm(keyValue).CountyCode + "】成功!");
            }
            catch { }
        }
 public void DeleteForm(string keyValue)
 {
     if (service.IQueryable().Count(t => t.F_ParentId.Equals(keyValue)) > 0)
     {
         throw new Exception("删除失败!操作的对象包含了下级数据。");
     }
     else
     {
         service.Delete(t => t.F_Id == keyValue);
         try
         {
             //添加日志
             LogMess.addLog(DbLogType.Delete.ToString(), "删除成功", "删除组织机构信息【" + GetForm(keyValue).F_FullName + "】成功!");
         }
         catch { }
     }
 }
        /// <summary>
        /// 修改添加
        /// </summary>
        /// <param name="cityEntity"></param>
        /// <param name="keyValue"></param>
        public void SubmitForm(ProfileCityEntity cityEntity, string keyValue)
        {
            if (!string.IsNullOrEmpty(keyValue))
            {
                cityEntity.Modify(keyValue);
            }
            else
            {
                cityEntity.Create();
            }

            try
            {
                //添加日志
                LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改区县信息【" + cityEntity.CityName + "】成功!");
            }
            catch { }
        }