顶级菜单 行政管理 增加 常用资料 09
顶级菜单 行政管理 常用资料 增加 通讯录 /Pages/work/Adm_tongxunluList.aspx 01
用例 新增通讯录 case_addModel
查看 case_OnDetail
修改 case_OnUdate
删除 case_OnDele
查看角色权限 case_Juesequanxian
顶级菜单 行政管理 常用资料 增加 账号密码 /Pages/work/Adm_zhanghaomimaList.aspx 02
用例 新增通讯录 case_addModel
查看 case_OnDetail
修改 case_OnUdate
删除 case_OnDele
查看角色权限 case_Juesequanxian
| | |
| | | OBJECT_PATH.Add(DALInterface.IOA_DeliverPlanPaicheDAL, "OA_DeliverPlanPaicheDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_DriverRecordDAL, "OA_DriverRecordDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_ShiJuanBiaoQianDAL, "OA_ShiJuanBiaoQianDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IAdm_tongxunluDAL, "Adm_tongxunluDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IAdm_zhanghaomimaDAL, "Adm_zhanghaomimaDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_KaipiaonewDAL, "OA_KaipiaonewDAL"); |
| | | OBJECT_PATH.Add(DALInterface.ICoreCmsPlanOrderDAL, "CoreCmsPlanOrderDAL"); |
| | | OBJECT_PATH.Add(DALInterface.ICoreCmsPlanOrderItemDAL, "CoreCmsPlanOrderItemDAL"); |
| | |
| | | /// </summary> |
| | | IOA_ShiJuanBiaoQianDAL = 1943, |
| | | |
| | | /// <summary> |
| | | /// 通讯录 |
| | | /// </summary> |
| | | IAdm_tongxunluDAL = 1944, |
| | | |
| | | /// <summary> |
| | | /// 账号密码 |
| | | /// </summary> |
| | | IAdm_zhanghaomimaDAL = 1945, |
| | | |
| | | |
| | | /// <summary> |
| | | /// 开票申请 |
| | |
| | | <Compile Include="Integrity\Integrity_IntegrityCardBLL.cs" /> |
| | | <Compile Include="Integrity\Integrity_CreditLevelRuleBLL.cs" /> |
| | | <Compile Include="LF\LF_OrderFileBLL.cs" /> |
| | | <Compile Include="OA\Adm_tongxunluBLL.cs" /> |
| | | <Compile Include="OA\Adm_zhanghaomimaBLL.cs" /> |
| | | <Compile Include="OA\CoreCmsPlanOrderBLL.cs" /> |
| | | <Compile Include="OA\CoreCmsPlanOrderItemBLL.cs" /> |
| | | <Compile Include="OA\OA_BaozhengjinBLL.cs" /> |
New file |
| | |
| | | |
| | | /** |
| | | * Adm_tongxunluBLL.cs |
| | | * |
| | | * 功 能: 合作客户业务逻辑类 |
| | | * 类 名: Adm_tongxunluBLL |
| | | * |
| | | * Ver 变更日期 负责人 变更内容 |
| | | * ─────────────────────────────────── |
| | | * V0.01 2013-4-2 15:11 吴辉 初版 |
| | | * V0.02 2013-5-29 17:43 吴崎均 增加转换在线会员为厂商客户方法 |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using CY.IDAL; |
| | | using CY.Model; |
| | | using AbstractFactory; |
| | | using CY.IBaseDAL; |
| | | using CY.Infrastructure.DESEncrypt; |
| | | using CY.Infrastructure.Query; |
| | | |
| | | namespace CY.BLL |
| | | { |
| | | public class Adm_tongxunluBLL |
| | | { |
| | | IAdm_tongxunluDAL _IAdm_tongxunluDAL = null; |
| | | |
| | | /// <summary> |
| | | /// 初始化构造 |
| | | /// </summary> |
| | | public Adm_tongxunluBLL() |
| | | { |
| | | //获取Adm_tongxunlu DAL实现 |
| | | _IAdm_tongxunluDAL = Factory.GetDALByInterfaceName(DALInterface.IAdm_tongxunluDAL) as IAdm_tongxunluDAL; |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 新增送货安排 |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <param name="m_OA_CustomerCommunications"></param> |
| | | /// <param name="m_EC_AcceptWayByCustomers"></param> |
| | | /// <returns></returns> |
| | | public bool InsertModel(CY.Model.Adm_tongxunlu m_Adm_tongxunlu) |
| | | { |
| | | try |
| | | { |
| | | |
| | | return _IAdm_tongxunluDAL.InserModel(m_Adm_tongxunlu); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 修改送货安排 |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <returns></returns> |
| | | public bool UpdateModel(CY.Model.Adm_tongxunlu m_Adm_tongxunlu) |
| | | { |
| | | try |
| | | { |
| | | return _IAdm_tongxunluDAL.UpdateModel(m_Adm_tongxunlu); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取全部合作客户 |
| | | /// </summary> |
| | | /// <param name="Keyid">主键id</param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Adm_tongxunlu> GetModelList() |
| | | { |
| | | Query query = new Query(); |
| | | return _IAdm_tongxunluDAL.SelectAllModel(query); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据formid获得信息 |
| | | /// </summary> |
| | | /// <param name="Keyid">编号</param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.Adm_tongxunlu> GetModelByformid(Guid formid) |
| | | { |
| | | |
| | | return _IAdm_tongxunluDAL.GetModelByformid(formid); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取全部合作客户 |
| | | /// </summary> |
| | | /// <param name="Keyid">主键id</param> |
| | | /// <returns></returns> |
| | | public Adm_tongxunlu GetModelByKeyid(int keyid) |
| | | { |
| | | |
| | | return _IAdm_tongxunluDAL.GetModelByKeyid(keyid); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 删除合作客户 |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <returns></returns> |
| | | public bool DeleteModel(CY.Model.Adm_tongxunlu rType) |
| | | { |
| | | try |
| | | { |
| | | _IAdm_tongxunluDAL.DeleteModel(rType); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查询合作客户分页列表 |
| | | /// </summary> |
| | | /// <param name="pa"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Adm_tongxunlu> SelectModelPage(Pagination pa, Guid FirmId, string type_id, string danwei_name) |
| | | { |
| | | string Condition = " and ok.FirmId ='" + FirmId + "' and ok.rec_status = 'A' "; |
| | | |
| | | |
| | | if (!string.IsNullOrEmpty(type_id)) |
| | | { |
| | | Condition += " and ok.type_id = " + type_id + ""; |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(danwei_name)) |
| | | { |
| | | Condition += " and ok.danwei_name like '%" + danwei_name + "%'"; |
| | | } |
| | | |
| | | Query query = new Query(); |
| | | IList<Criterion> criterias = new List<Criterion>() |
| | | { |
| | | new Criterion("", Condition), |
| | | |
| | | new Criterion("orderBy"," createtime desc ") |
| | | }; |
| | | query.Criteria = criterias; |
| | | return _IAdm_tongxunluDAL.SelectModelPage(query, pa); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | |
| | | /** |
| | | * Adm_zhanghaomimaBLL.cs |
| | | * |
| | | * 功 能: 合作客户业务逻辑类 |
| | | * 类 名: Adm_zhanghaomimaBLL |
| | | * |
| | | * Ver 变更日期 负责人 变更内容 |
| | | * ─────────────────────────────────── |
| | | * V0.01 2013-4-2 15:11 吴辉 初版 |
| | | * V0.02 2013-5-29 17:43 吴崎均 增加转换在线会员为厂商客户方法 |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using CY.IDAL; |
| | | using CY.Model; |
| | | using AbstractFactory; |
| | | using CY.IBaseDAL; |
| | | using CY.Infrastructure.DESEncrypt; |
| | | using CY.Infrastructure.Query; |
| | | |
| | | namespace CY.BLL |
| | | { |
| | | public class Adm_zhanghaomimaBLL |
| | | { |
| | | IAdm_zhanghaomimaDAL _IAdm_zhanghaomimaDAL = null; |
| | | |
| | | /// <summary> |
| | | /// 初始化构造 |
| | | /// </summary> |
| | | public Adm_zhanghaomimaBLL() |
| | | { |
| | | //获取Adm_zhanghaomima DAL实现 |
| | | _IAdm_zhanghaomimaDAL = Factory.GetDALByInterfaceName(DALInterface.IAdm_zhanghaomimaDAL) as IAdm_zhanghaomimaDAL; |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 新增送货安排 |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <param name="m_OA_CustomerCommunications"></param> |
| | | /// <param name="m_EC_AcceptWayByCustomers"></param> |
| | | /// <returns></returns> |
| | | public bool InsertModel(CY.Model.Adm_zhanghaomima m_Adm_zhanghaomima) |
| | | { |
| | | try |
| | | { |
| | | |
| | | return _IAdm_zhanghaomimaDAL.InserModel(m_Adm_zhanghaomima); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 修改送货安排 |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <returns></returns> |
| | | public bool UpdateModel(CY.Model.Adm_zhanghaomima m_Adm_zhanghaomima) |
| | | { |
| | | try |
| | | { |
| | | return _IAdm_zhanghaomimaDAL.UpdateModel(m_Adm_zhanghaomima); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取全部合作客户 |
| | | /// </summary> |
| | | /// <param name="Keyid">主键id</param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Adm_zhanghaomima> GetModelList() |
| | | { |
| | | Query query = new Query(); |
| | | return _IAdm_zhanghaomimaDAL.SelectAllModel(query); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据formid获得信息 |
| | | /// </summary> |
| | | /// <param name="Keyid">编号</param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.Adm_zhanghaomima> GetModelByformid(Guid formid) |
| | | { |
| | | |
| | | return _IAdm_zhanghaomimaDAL.GetModelByformid(formid); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取全部合作客户 |
| | | /// </summary> |
| | | /// <param name="Keyid">主键id</param> |
| | | /// <returns></returns> |
| | | public Adm_zhanghaomima GetModelByKeyid(int keyid) |
| | | { |
| | | |
| | | return _IAdm_zhanghaomimaDAL.GetModelByKeyid(keyid); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 删除合作客户 |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <returns></returns> |
| | | public bool DeleteModel(CY.Model.Adm_zhanghaomima rType) |
| | | { |
| | | try |
| | | { |
| | | _IAdm_zhanghaomimaDAL.DeleteModel(rType); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查询合作客户分页列表 |
| | | /// </summary> |
| | | /// <param name="pa"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Adm_zhanghaomima> SelectModelPage(Pagination pa, Guid FirmId, string type_id, string chanpinxiangmu) |
| | | { |
| | | string Condition = " and ok.FirmId ='" + FirmId + "' and ok.rec_status = 'A' "; |
| | | |
| | | |
| | | if (!string.IsNullOrEmpty(type_id)) |
| | | { |
| | | Condition += " and ok.type_id = " + type_id + ""; |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(chanpinxiangmu)) |
| | | { |
| | | Condition += " and ok.chanpinxiangmu like '%" + chanpinxiangmu + "%'"; |
| | | } |
| | | |
| | | Query query = new Query(); |
| | | IList<Criterion> criterias = new List<Criterion>() |
| | | { |
| | | new Criterion("", Condition), |
| | | |
| | | new Criterion("orderBy"," createtime desc ") |
| | | }; |
| | | query.Criteria = criterias; |
| | | return _IAdm_zhanghaomimaDAL.SelectModelPage(query, pa); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | <Compile Include="Integrity\IIntegrity_CreditLevelRuleDAL.cs" /> |
| | | <Compile Include="Integrity\IIntegrity_EvaluationRecordsDAL.cs" /> |
| | | <Compile Include="Integrity\IIntegrity_IntegrityCardDAL.cs" /> |
| | | <Compile Include="OA\IAdm_tongxunluDAL.cs" /> |
| | | <Compile Include="OA\IAdm_zhanghaomimaDAL.cs" /> |
| | | <Compile Include="OA\ICoreCmsPlanOrderDAL.cs" /> |
| | | <Compile Include="OA\ICoreCmsPlanOrderItemDAL.cs" /> |
| | | <Compile Include="OA\IOA_BaozhengjincuishouDAL.cs" /> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using CY.IBaseDAL; |
| | | using CY.Model; |
| | | |
| | | |
| | | namespace CY.IDAL |
| | | { |
| | | public interface IAdm_tongxunluDAL : ICommonDAL, IPaging<Adm_tongxunlu>, IGetAllModel<Adm_tongxunlu> |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 根据编号获得信息 |
| | | /// </summary> |
| | | /// <param name="Keyid">编号</param> |
| | | /// <returns></returns> |
| | | Adm_tongxunlu GetModelByKeyid(int keyid); |
| | | |
| | | /// <summary> |
| | | /// 根据formid获得信息 |
| | | /// </summary> |
| | | /// <param name="Keyid">编号</param> |
| | | /// <returns></returns> |
| | | IEnumerable<Adm_tongxunlu> GetModelByformid(Guid formid); |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using CY.IBaseDAL; |
| | | using CY.Model; |
| | | |
| | | |
| | | namespace CY.IDAL |
| | | { |
| | | public interface IAdm_zhanghaomimaDAL : ICommonDAL, IPaging<Adm_zhanghaomima>, IGetAllModel<Adm_zhanghaomima> |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 根据编号获得信息 |
| | | /// </summary> |
| | | /// <param name="Keyid">编号</param> |
| | | /// <returns></returns> |
| | | Adm_zhanghaomima GetModelByKeyid(int keyid); |
| | | |
| | | /// <summary> |
| | | /// 根据formid获得信息 |
| | | /// </summary> |
| | | /// <param name="Keyid">编号</param> |
| | | /// <returns></returns> |
| | | IEnumerable<Adm_zhanghaomima> GetModelByformid(Guid formid); |
| | | } |
| | | } |
| | |
| | | <Compile Include="LF\LF_OrderFileExtend.cs" /> |
| | | <Compile Include="LF\LF_SellerFileSpace.cs" /> |
| | | <Compile Include="LF\LF_SellerFileSpaceExtend.cs" /> |
| | | <Compile Include="OA\Adm_tongxunlu.cs" /> |
| | | <Compile Include="OA\Adm_zhanghaomima.cs" /> |
| | | <Compile Include="OA\CoreCmsPlanOrder.cs" /> |
| | | <Compile Include="OA\CoreCmsPlanOrderItem.cs" /> |
| | | <Compile Include="OA\CoreDeliverOrderItem.cs" /> |
New file |
| | |
| | | /** |
| | | * OA_CorporateClients.cs |
| | | * |
| | | * 功 能: N/A |
| | | * 类 名: OA_CorporateClients |
| | | * |
| | | * Ver 变更日期 负责人 变更内容 |
| | | * ─────────────────────────────────── |
| | | * V0.01 2013-4-2 14:27:43 N/A 初版 |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | */ |
| | | |
| | | using System; |
| | | using CY.Infrastructure.Domain; |
| | | using CY.Infrastructure.Common; |
| | | |
| | | namespace CY.Model |
| | | { |
| | | /// <summary> |
| | | /// 印刷参数 |
| | | /// </summary> |
| | | [Serializable] |
| | | public partial class Adm_tongxunlu : IAggregateRoot |
| | | { |
| | | |
| | | public Adm_tongxunlu() |
| | | { |
| | | } |
| | | #region Model |
| | | /// <summary> |
| | | /// id |
| | | /// </summary> |
| | | public int Keyid { get; set; } |
| | | /// <summary> |
| | | /// FirmId |
| | | /// </summary> |
| | | public Guid FirmId { get; set; } |
| | | /// <summary> |
| | | /// type_id |
| | | /// </summary> |
| | | public int? type_id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// typeName |
| | | /// </summary> |
| | | public string typeName { get; set; } |
| | | /// <summary> |
| | | /// danwei_name |
| | | /// </summary> |
| | | public string danwei_name { get; set; } |
| | | /// <summary> |
| | | /// lianxiren |
| | | /// </summary> |
| | | public string lianxiren { get; set; } |
| | | /// <summary> |
| | | /// lianxidianhua |
| | | /// </summary> |
| | | public string lianxidianhua { get; set; } |
| | | /// <summary> |
| | | /// beuzhu |
| | | /// </summary> |
| | | public string beuzhu { get; set; } |
| | | |
| | | /// <summary> |
| | | /// rec_status A/D |
| | | /// </summary> |
| | | public string rec_status { get; set; } |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 创建人 |
| | | /// </summary> |
| | | public string creater |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 创建时间 |
| | | /// </summary> |
| | | public DateTime createtime |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | /// <summary> |
| | | /// 修改人 |
| | | /// </summary> |
| | | public string modifier |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | /// <summary> |
| | | /// 修改时间 |
| | | /// </summary> |
| | | public DateTime modifytime |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// Jusequanxian |
| | | /// </summary> |
| | | public string Jusequanxian |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | #endregion Model |
| | | |
| | | #region Visiter |
| | | |
| | | /// <summary> |
| | | /// 属性访问器 |
| | | /// </summary> |
| | | /// <param name="name">属性名</param> |
| | | /// <param name="index">索引</param> |
| | | /// <param name="isChange">是否将指定属性设置为传入值</param> |
| | | /// <param name="value">需要赋予的值</param> |
| | | /// <returns>与名称对应的属性值</returns> |
| | | public object Visiter(string name, int? index = -1, bool isChange = false, object value = null) |
| | | { |
| | | object theValue = null; |
| | | |
| | | |
| | | if ("Keyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1) |
| | | { |
| | | this.Keyid = isChange ? MyConvert.ConvertToInt32(value).Value : Keyid; |
| | | theValue = this.Keyid; |
| | | } |
| | | else if ("FirmId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2) |
| | | { |
| | | this.FirmId = isChange ? MyConvert.ConvertToGuid(value) : FirmId; |
| | | theValue = this.FirmId; |
| | | } |
| | | else if ("type_id".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) |
| | | { |
| | | this.type_id = isChange ? MyConvert.ConvertToInt32(value) : type_id; |
| | | theValue = this.type_id; |
| | | } |
| | | else if ("danwei_name".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) |
| | | { |
| | | this.danwei_name = isChange ? MyConvert.ConvertToString(value) : danwei_name; |
| | | theValue = this.danwei_name; |
| | | } |
| | | |
| | | else if ("lianxiren".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) |
| | | { |
| | | this.lianxiren = isChange ? MyConvert.ConvertToString(value) : lianxiren; |
| | | theValue = this.lianxiren; |
| | | } |
| | | else if ("lianxidianhua".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) |
| | | { |
| | | this.lianxidianhua = isChange ? MyConvert.ConvertToString(value) : lianxidianhua; |
| | | theValue = this.lianxidianhua; |
| | | } |
| | | else if ("beuzhu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7) |
| | | { |
| | | this.beuzhu = isChange ? MyConvert.ConvertToString(value) : beuzhu; |
| | | theValue = this.beuzhu; |
| | | } |
| | | else if ("rec_status".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8) |
| | | { |
| | | this.rec_status = isChange ? MyConvert.ConvertToString(value) : rec_status; |
| | | theValue = this.rec_status; |
| | | } |
| | | |
| | | |
| | | |
| | | else if ("creater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14) |
| | | { |
| | | this.creater = isChange ? MyConvert.ConvertToString(value) : creater; |
| | | theValue = this.creater; |
| | | } |
| | | else if ("createtime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15) |
| | | { |
| | | this.createtime = isChange ? MyConvert.ConvertToDateTime(value).Value : createtime; |
| | | theValue = this.createtime; |
| | | } |
| | | else if ("modifier".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16) |
| | | { |
| | | this.modifier = isChange ? MyConvert.ConvertToString(value) : modifier; |
| | | theValue = this.modifier; |
| | | } |
| | | else if ("modifytime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17) |
| | | { |
| | | this.modifytime = isChange ? MyConvert.ConvertToDateTime(value).Value : modifytime; |
| | | theValue = this.modifytime; |
| | | } |
| | | |
| | | else if ("typeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18) |
| | | { |
| | | this.typeName = isChange ? MyConvert.ConvertToString(value) : typeName; |
| | | theValue = this.typeName; |
| | | } |
| | | else if ("Jusequanxian".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19) |
| | | { |
| | | this.Jusequanxian = isChange ? MyConvert.ConvertToString(value) : Jusequanxian; |
| | | theValue = this.Jusequanxian; |
| | | } |
| | | |
| | | return theValue; |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |
New file |
| | |
| | | /** |
| | | * OA_CorporateClients.cs |
| | | * |
| | | * 功 能: N/A |
| | | * 类 名: OA_CorporateClients |
| | | * |
| | | * Ver 变更日期 负责人 变更内容 |
| | | * ─────────────────────────────────── |
| | | * V0.01 2013-4-2 14:27:43 N/A 初版 |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | */ |
| | | |
| | | using System; |
| | | using CY.Infrastructure.Domain; |
| | | using CY.Infrastructure.Common; |
| | | |
| | | namespace CY.Model |
| | | { |
| | | /// <summary> |
| | | /// 印刷参数 |
| | | /// </summary> |
| | | [Serializable] |
| | | public partial class Adm_zhanghaomima : IAggregateRoot |
| | | { |
| | | |
| | | public Adm_zhanghaomima() |
| | | { |
| | | } |
| | | #region Model |
| | | /// <summary> |
| | | /// id |
| | | /// </summary> |
| | | public int Keyid { get; set; } |
| | | /// <summary> |
| | | /// FirmId |
| | | /// </summary> |
| | | public Guid FirmId { get; set; } |
| | | /// <summary> |
| | | /// type_id |
| | | /// </summary> |
| | | public int? type_id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// typeName |
| | | /// </summary> |
| | | public string typeName { get; set; } |
| | | /// <summary> |
| | | /// chanpinxiangmu |
| | | /// </summary> |
| | | public string chanpinxiangmu { get; set; } |
| | | /// <summary> |
| | | /// zhanghao |
| | | /// </summary> |
| | | public string zhanghao { get; set; } |
| | | /// <summary> |
| | | /// mima |
| | | /// </summary> |
| | | public string mima { get; set; } |
| | | /// <summary> |
| | | /// mibao |
| | | /// </summary> |
| | | public string mibao { get; set; } |
| | | |
| | | /// <summary> |
| | | /// rec_status A/D |
| | | /// </summary> |
| | | public string rec_status { get; set; } |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 创建人 |
| | | /// </summary> |
| | | public string creater |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 创建时间 |
| | | /// </summary> |
| | | public DateTime createtime |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | /// <summary> |
| | | /// 修改人 |
| | | /// </summary> |
| | | public string modifier |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | /// <summary> |
| | | /// 修改时间 |
| | | /// </summary> |
| | | public DateTime modifytime |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | /// <summary> |
| | | /// Jusequanxian |
| | | /// </summary> |
| | | public string Jusequanxian |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | #endregion Model |
| | | |
| | | #region Visiter |
| | | |
| | | /// <summary> |
| | | /// 属性访问器 |
| | | /// </summary> |
| | | /// <param name="name">属性名</param> |
| | | /// <param name="index">索引</param> |
| | | /// <param name="isChange">是否将指定属性设置为传入值</param> |
| | | /// <param name="value">需要赋予的值</param> |
| | | /// <returns>与名称对应的属性值</returns> |
| | | public object Visiter(string name, int? index = -1, bool isChange = false, object value = null) |
| | | { |
| | | object theValue = null; |
| | | |
| | | |
| | | if ("Keyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1) |
| | | { |
| | | this.Keyid = isChange ? MyConvert.ConvertToInt32(value).Value : Keyid; |
| | | theValue = this.Keyid; |
| | | } |
| | | else if ("FirmId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2) |
| | | { |
| | | this.FirmId = isChange ? MyConvert.ConvertToGuid(value) : FirmId; |
| | | theValue = this.FirmId; |
| | | } |
| | | else if ("type_id".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) |
| | | { |
| | | this.type_id = isChange ? MyConvert.ConvertToInt32(value) : type_id; |
| | | theValue = this.type_id; |
| | | } |
| | | else if ("chanpinxiangmu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) |
| | | { |
| | | this.chanpinxiangmu = isChange ? MyConvert.ConvertToString(value) : chanpinxiangmu; |
| | | theValue = this.chanpinxiangmu; |
| | | } |
| | | |
| | | else if ("zhanghao".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) |
| | | { |
| | | this.zhanghao = isChange ? MyConvert.ConvertToString(value) : zhanghao; |
| | | theValue = this.zhanghao; |
| | | } |
| | | else if ("mima".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) |
| | | { |
| | | this.mima = isChange ? MyConvert.ConvertToString(value) : mima; |
| | | theValue = this.mima; |
| | | } |
| | | else if ("mibao".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7) |
| | | { |
| | | this.mibao = isChange ? MyConvert.ConvertToString(value) : mibao; |
| | | theValue = this.mibao; |
| | | } |
| | | else if ("rec_status".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8) |
| | | { |
| | | this.rec_status = isChange ? MyConvert.ConvertToString(value) : rec_status; |
| | | theValue = this.rec_status; |
| | | } |
| | | |
| | | |
| | | |
| | | else if ("creater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14) |
| | | { |
| | | this.creater = isChange ? MyConvert.ConvertToString(value) : creater; |
| | | theValue = this.creater; |
| | | } |
| | | else if ("createtime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15) |
| | | { |
| | | this.createtime = isChange ? MyConvert.ConvertToDateTime(value).Value : createtime; |
| | | theValue = this.createtime; |
| | | } |
| | | else if ("modifier".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16) |
| | | { |
| | | this.modifier = isChange ? MyConvert.ConvertToString(value) : modifier; |
| | | theValue = this.modifier; |
| | | } |
| | | else if ("modifytime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17) |
| | | { |
| | | this.modifytime = isChange ? MyConvert.ConvertToDateTime(value).Value : modifytime; |
| | | theValue = this.modifytime; |
| | | } |
| | | |
| | | else if ("typeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18) |
| | | { |
| | | this.typeName = isChange ? MyConvert.ConvertToString(value) : typeName; |
| | | theValue = this.typeName; |
| | | } |
| | | else if ("Jusequanxian".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19) |
| | | { |
| | | this.Jusequanxian = isChange ? MyConvert.ConvertToString(value) : Jusequanxian; |
| | | theValue = this.Jusequanxian; |
| | | } |
| | | |
| | | |
| | | return theValue; |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |
| | |
| | | <Compile Include="Integrity\Integrity_IntegrityCardDAL.cs" /> |
| | | <Compile Include="LF\LF_OrderFileDAL.cs" /> |
| | | <Compile Include="LF\LF_SellerFileSpaceDAL.cs" /> |
| | | <Compile Include="OA\Adm_tongxunluDAL.cs" /> |
| | | <Compile Include="OA\Adm_zhanghaomimaDAL.cs" /> |
| | | <Compile Include="OA\CoreCmsPlanOrderDAL.cs" /> |
| | | <Compile Include="OA\CoreCmsPlanOrderItemDAL.cs" /> |
| | | <Compile Include="OA\OA_BaozhengjincuishouDAL.cs" /> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using CY.IDAL; |
| | | using System.Data.SqlClient; |
| | | using System.Data; |
| | | using CY.Model; |
| | | using System.Transactions; |
| | | |
| | | |
| | | namespace CY.SQLDAL |
| | | { |
| | | public class Adm_tongxunluDAL : IAdm_tongxunluDAL |
| | | { |
| | | |
| | | private Database _dataBase = null; |
| | | #region 常量 |
| | | /// <summary> |
| | | /// 查询目标 |
| | | /// </summary> |
| | | const string SELECTTARGET = " t.* "; |
| | | /// <summary> |
| | | /// 查询来源 |
| | | /// </summary> |
| | | const string FROMSOUCEBEFORE = " ( select ok.*,types.Name as typeName " + |
| | | " from [Adm_tongxunlu] ok " + |
| | | |
| | | " Left Join Sys_Dictionary as types On(types.DicType= 'Sys_通讯录' and ok.[type_id]= types.MeanValue) where 0=0 "; |
| | | const string FROMSOUCEEND = ") as t "; |
| | | /// <summary> |
| | | /// 分页默认排序字段 |
| | | /// </summary> |
| | | const string ORDERBY = " createtime desc "; |
| | | #endregion |
| | | public Adm_tongxunluDAL() |
| | | { |
| | | _dataBase = new Database(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 新增 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool InserModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.Adm_tongxunlu trueModel = model as Model.Adm_tongxunlu; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | |
| | | // new SqlParameter("@Keyid",trueModel.Keyid), |
| | | new SqlParameter("@FirmId",trueModel.FirmId), |
| | | new SqlParameter("@type_id",trueModel.type_id), |
| | | new SqlParameter("@danwei_name",trueModel.danwei_name), |
| | | new SqlParameter("@lianxiren",trueModel.lianxiren), |
| | | |
| | | new SqlParameter("@lianxidianhua",trueModel.lianxidianhua), |
| | | |
| | | new SqlParameter("@beuzhu",trueModel.beuzhu), |
| | | new SqlParameter("@rec_status",trueModel.rec_status), |
| | | new SqlParameter("@creater",trueModel.creater), |
| | | new SqlParameter("@createtime",trueModel.createtime), |
| | | new SqlParameter("@modifier",trueModel.modifier), |
| | | new SqlParameter("@modifytime",trueModel.modifytime), |
| | | |
| | | |
| | | }; |
| | | string sql = "Insert Into Adm_tongxunlu ([FirmId],[type_id],[danwei_name],[lianxiren], [lianxidianhua], [beuzhu],[rec_status], [creater],[createtime], [modifier],[modifytime])" |
| | | + " Values (@FirmId,@type_id,@danwei_name, @lianxiren, @lianxidianhua, @beuzhu, @rec_status, @creater, @createtime, @modifier,@modifytime)"; |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 修改 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool UpdateModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.Adm_tongxunlu trueModel = model as Model.Adm_tongxunlu; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | |
| | | new SqlParameter("@Keyid",trueModel.Keyid), |
| | | new SqlParameter("@FirmId",trueModel.FirmId), |
| | | new SqlParameter("@type_id",trueModel.type_id), |
| | | new SqlParameter("@danwei_name",trueModel.danwei_name), |
| | | new SqlParameter("@lianxiren",trueModel.lianxiren), |
| | | |
| | | new SqlParameter("@lianxidianhua",trueModel.lianxidianhua), |
| | | |
| | | new SqlParameter("@beuzhu",trueModel.beuzhu), |
| | | new SqlParameter("@rec_status",trueModel.rec_status), |
| | | new SqlParameter("@creater",trueModel.creater), |
| | | new SqlParameter("@createtime",trueModel.createtime), |
| | | new SqlParameter("@modifier",trueModel.modifier), |
| | | new SqlParameter("@modifytime",trueModel.modifytime), |
| | | new SqlParameter("@Jusequanxian",string.IsNullOrEmpty(trueModel.Jusequanxian)?"":trueModel.Jusequanxian), |
| | | |
| | | }; |
| | | string sql = "Update Adm_tongxunlu Set [FirmId]=@FirmId,[type_id]=@type_id,[danwei_name]=@danwei_name,[lianxiren]=@lianxiren, [lianxidianhua]=@lianxidianhua, [beuzhu]=@beuzhu,[rec_status]=@rec_status, [creater]=@creater,[createtime]=@createtime,[modifier]=@modifier,[modifytime]=@modifytime,[Jusequanxian]=@Jusequanxian where [Keyid] =@Keyid "; |
| | | |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 根据编号获得信息 |
| | | /// </summary> |
| | | /// <param name="Keyid">编号</param> |
| | | /// <returns></returns> |
| | | public Adm_tongxunlu GetModelByKeyid(int keyid) |
| | | { |
| | | try |
| | | { |
| | | string condition = " "; |
| | | if (keyid > 0) |
| | | { |
| | | condition = " Keyid=" + keyid + ""; |
| | | } |
| | | else |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | // return null;//错误数据返会空 |
| | | |
| | | IList<Adm_tongxunlu> result = _dataBase.SelectModel<Adm_tongxunlu>("*", "Adm_tongxunlu", condition) as IList<Adm_tongxunlu>;//执行查询 |
| | | |
| | | return (null == result || result.Count == 0) ? null : result[0];//返回结果 |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 全部查询 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.Adm_tongxunlu> SelectAllModel(Infrastructure.Query.Query query) |
| | | { |
| | | return _dataBase.SelectModel<Model.Adm_tongxunlu>(" * ", " Adm_tongxunlu ") as IList<Model.Adm_tongxunlu>;//执行查询 |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 全部查询 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.Adm_tongxunlu> GetModelByformid(Guid FirmId) |
| | | { |
| | | return _dataBase.SelectModel<Model.Adm_tongxunlu>(" * ", " Adm_tongxunlu ", " FirmId = '" + FirmId + "'") as IList<Model.Adm_tongxunlu>;//执行查询 |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 分页查询 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <param name="pagination"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.Adm_tongxunlu> SelectModelPage(Infrastructure.Query.Query query, Infrastructure.Query.Pagination pagination) |
| | | { |
| | | if (null == pagination || null == query || null == query.Criteria || 1 > query.Criteria.Count) |
| | | return null; |
| | | //query.Criteria 首个元素必须是排序字段,其值为结果排序字段 |
| | | |
| | | int maxParamIndex = query.Criteria.Count - 1;//最大索引 |
| | | |
| | | string[] orderbys = new string[] { ORDERBY }; |
| | | string resultOrderBy = "";//结果集排序方式 |
| | | |
| | | if ("@orderBy".Equals(query.Criteria[maxParamIndex].PropertyName)) |
| | | { |
| | | orderbys = string.Format("{0}", query.Criteria[maxParamIndex].Value).Split(','); |
| | | resultOrderBy = query.Criteria[maxParamIndex].Value.ToString();//= 1 == orderbys.Length ? resultOrderBy : orderbys[1]; |
| | | } |
| | | string fromSouce = string.Format("{0}{1}{2}", FROMSOUCEBEFORE, query.Criteria[0].Value, FROMSOUCEEND);//拼装条件 |
| | | |
| | | return _dataBase.SelectModelPage<Model.Adm_tongxunlu>(pagination, SELECTTARGET, fromSouce, orderbys[0], resultOrderBy); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 删除 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool DeleteModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.Adm_tongxunlu trueModel = model as Model.Adm_tongxunlu; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | new SqlParameter("@Keyid",trueModel.Keyid) |
| | | }; |
| | | string sql = "Delete Adm_tongxunlu Where [Keyid] = @Keyid "; |
| | | |
| | | |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using CY.IDAL; |
| | | using System.Data.SqlClient; |
| | | using System.Data; |
| | | using CY.Model; |
| | | using System.Transactions; |
| | | |
| | | |
| | | namespace CY.SQLDAL |
| | | { |
| | | public class Adm_zhanghaomimaDAL : IAdm_zhanghaomimaDAL |
| | | { |
| | | |
| | | private Database _dataBase = null; |
| | | #region 常量 |
| | | /// <summary> |
| | | /// 查询目标 |
| | | /// </summary> |
| | | const string SELECTTARGET = " t.* "; |
| | | /// <summary> |
| | | /// 查询来源 |
| | | /// </summary> |
| | | const string FROMSOUCEBEFORE = " ( select ok.*,types.Name as typeName " + |
| | | " from [Adm_zhanghaomima] ok " + |
| | | |
| | | " Left Join Sys_Dictionary as types On(types.DicType= 'Sys_账号密码' and ok.[type_id]= types.MeanValue) where 0=0 "; |
| | | const string FROMSOUCEEND = ") as t "; |
| | | /// <summary> |
| | | /// 分页默认排序字段 |
| | | /// </summary> |
| | | const string ORDERBY = " createtime desc "; |
| | | #endregion |
| | | public Adm_zhanghaomimaDAL() |
| | | { |
| | | _dataBase = new Database(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 新增 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool InserModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.Adm_zhanghaomima trueModel = model as Model.Adm_zhanghaomima; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | |
| | | // new SqlParameter("@Keyid",trueModel.Keyid), |
| | | new SqlParameter("@FirmId",trueModel.FirmId), |
| | | new SqlParameter("@type_id",trueModel.type_id), |
| | | new SqlParameter("@chanpinxiangmu",trueModel.chanpinxiangmu), |
| | | new SqlParameter("@zhanghao",trueModel.zhanghao), |
| | | |
| | | new SqlParameter("@mima",trueModel.mima), |
| | | |
| | | new SqlParameter("@mibao",trueModel.mibao), |
| | | new SqlParameter("@rec_status",trueModel.rec_status), |
| | | new SqlParameter("@creater",trueModel.creater), |
| | | new SqlParameter("@createtime",trueModel.createtime), |
| | | new SqlParameter("@modifier",trueModel.modifier), |
| | | new SqlParameter("@modifytime",trueModel.modifytime), |
| | | |
| | | }; |
| | | string sql = "Insert Into Adm_zhanghaomima ([FirmId],[type_id],[chanpinxiangmu],[zhanghao], [mima], [mibao],[rec_status], [creater],[createtime], [modifier],[modifytime])" |
| | | + " Values (@FirmId,@type_id,@chanpinxiangmu, @zhanghao, @mima, @mibao, @rec_status, @creater, @createtime, @modifier,@modifytime)"; |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 修改 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool UpdateModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.Adm_zhanghaomima trueModel = model as Model.Adm_zhanghaomima; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | |
| | | new SqlParameter("@Keyid",trueModel.Keyid), |
| | | new SqlParameter("@FirmId",trueModel.FirmId), |
| | | new SqlParameter("@type_id",trueModel.type_id), |
| | | new SqlParameter("@chanpinxiangmu",trueModel.chanpinxiangmu), |
| | | new SqlParameter("@zhanghao",trueModel.zhanghao), |
| | | |
| | | new SqlParameter("@mima",trueModel.mima), |
| | | |
| | | new SqlParameter("@mibao",trueModel.mibao), |
| | | new SqlParameter("@rec_status",trueModel.rec_status), |
| | | new SqlParameter("@creater",trueModel.creater), |
| | | new SqlParameter("@createtime",trueModel.createtime), |
| | | new SqlParameter("@modifier",trueModel.modifier), |
| | | new SqlParameter("@modifytime",trueModel.modifytime), |
| | | new SqlParameter("@Jusequanxian",string.IsNullOrEmpty(trueModel.Jusequanxian)?"":trueModel.Jusequanxian), |
| | | |
| | | }; |
| | | string sql = "Update Adm_zhanghaomima Set [FirmId]=@FirmId,[type_id]=@type_id,[chanpinxiangmu]=@chanpinxiangmu,[zhanghao]=@zhanghao, [mima]=@mima, [mibao]=@mibao,[rec_status]=@rec_status, [creater]=@creater,[createtime]=@createtime,[modifier]=@modifier,[modifytime]=@modifytime,[Jusequanxian]=@Jusequanxian where [Keyid] =@Keyid "; |
| | | |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 根据编号获得信息 |
| | | /// </summary> |
| | | /// <param name="Keyid">编号</param> |
| | | /// <returns></returns> |
| | | public Adm_zhanghaomima GetModelByKeyid(int keyid) |
| | | { |
| | | try |
| | | { |
| | | string condition = " "; |
| | | if (keyid>0) |
| | | { |
| | | condition = " Keyid=" + keyid + ""; |
| | | } |
| | | else |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | // return null;//错误数据返会空 |
| | | |
| | | IList<Adm_zhanghaomima> result = _dataBase.SelectModel<Adm_zhanghaomima>("*", "Adm_zhanghaomima", condition) as IList<Adm_zhanghaomima>;//执行查询 |
| | | |
| | | return (null == result || result.Count == 0) ? null : result[0];//返回结果 |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 全部查询 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.Adm_zhanghaomima> SelectAllModel(Infrastructure.Query.Query query) |
| | | { |
| | | return _dataBase.SelectModel<Model.Adm_zhanghaomima>(" * ", " Adm_zhanghaomima ") as IList<Model.Adm_zhanghaomima>;//执行查询 |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 全部查询 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.Adm_zhanghaomima> GetModelByformid(Guid FirmId) |
| | | { |
| | | return _dataBase.SelectModel<Model.Adm_zhanghaomima>(" * ", " Adm_zhanghaomima ", " FirmId = '" + FirmId + "'") as IList<Model.Adm_zhanghaomima>;//执行查询 |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 分页查询 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <param name="pagination"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.Adm_zhanghaomima> SelectModelPage(Infrastructure.Query.Query query, Infrastructure.Query.Pagination pagination) |
| | | { |
| | | if (null == pagination || null == query || null == query.Criteria || 1 > query.Criteria.Count) |
| | | return null; |
| | | //query.Criteria 首个元素必须是排序字段,其值为结果排序字段 |
| | | |
| | | int maxParamIndex = query.Criteria.Count - 1;//最大索引 |
| | | |
| | | string[] orderbys = new string[] { ORDERBY }; |
| | | string resultOrderBy = "";//结果集排序方式 |
| | | |
| | | if ("@orderBy".Equals(query.Criteria[maxParamIndex].PropertyName)) |
| | | { |
| | | orderbys = string.Format("{0}", query.Criteria[maxParamIndex].Value).Split(','); |
| | | resultOrderBy = query.Criteria[maxParamIndex].Value.ToString();//= 1 == orderbys.Length ? resultOrderBy : orderbys[1]; |
| | | } |
| | | string fromSouce = string.Format("{0}{1}{2}", FROMSOUCEBEFORE, query.Criteria[0].Value, FROMSOUCEEND);//拼装条件 |
| | | |
| | | |
| | | |
| | | return _dataBase.SelectModelPage<Model.Adm_zhanghaomima>(pagination, SELECTTARGET, fromSouce, orderbys[0], resultOrderBy); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 删除 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool DeleteModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.Adm_zhanghaomima trueModel = model as Model.Adm_zhanghaomima; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | new SqlParameter("@Keyid",trueModel.Keyid) |
| | | }; |
| | | string sql = "Delete Adm_zhanghaomima Where [Keyid] = @Keyid "; |
| | | |
| | | |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | |
| | | new SqlParameter("@DM_PrintStatus", trueModel.DM_PrintStatus) , |
| | | new SqlParameter("@LastUpdateTime", trueModel.LastUpdateTime) , |
| | | new SqlParameter("@Operator", trueModel.Operator), |
| | | new SqlParameter("@Jusequanxian", trueModel.Jusequanxian), |
| | | new SqlParameter("@Jusequanxian",string.IsNullOrEmpty(trueModel.Jusequanxian)?"":trueModel.Jusequanxian), |
| | | }; |
| | | try |
| | | { |
| | |
| | | <Content Include="Pages\workcar\CarViolationList.aspx" /> |
| | | <Content Include="Pages\workcar\MemberDictionaryEdit.aspx" /> |
| | | <Content Include="Pages\workcar\MemberDictionaryList.aspx" /> |
| | | <Content Include="Pages\work\Adm_zhanghaomimaJuese.aspx" /> |
| | | <Content Include="Pages\work\Adm_zhanghaomimaDetail.aspx" /> |
| | | <Content Include="Pages\work\Adm_zhanghaomimaAdd.aspx" /> |
| | | <Content Include="Pages\work\Adm_tongxunluDetail.aspx" /> |
| | | <Content Include="Pages\work\Adm_zhanghaomimaList.aspx" /> |
| | | <Content Include="Pages\work\BaoxiaoFukuanList.aspx" /> |
| | | <Content Include="Pages\work\BaoxiaoPiliangReply.aspx" /> |
| | | <Content Include="Pages\work\BaoxiaoReplyList.aspx" /> |
| | |
| | | <Content Include="Pages\work\MyRequestDetail.aspx" /> |
| | | <Content Include="Pages\work\MyBaoxiaoList.aspx" /> |
| | | <Content Include="Pages\work\MyRequestList.aspx" /> |
| | | <Content Include="Pages\work\Adm_tongxunluAdd.aspx" /> |
| | | <Content Include="Pages\work\OA_DocumentAdd.aspx" /> |
| | | <Content Include="Pages\work\OA_DocumentDetail.aspx" /> |
| | | <Content Include="Pages\work\OA_DocumentDicAdd.aspx" /> |
| | | <Content Include="Pages\work\OA_DocumentDicDetail.aspx" /> |
| | | <Content Include="Pages\work\Adm_tongxunluJuese.aspx" /> |
| | | <Content Include="Pages\work\OA_DocumentJuese.aspx" /> |
| | | <Content Include="Pages\work\OA_DocumentDicList.aspx" /> |
| | | <Content Include="Pages\work\Adm_tongxunluList.aspx" /> |
| | | <Content Include="Pages\work\OA_DocumentList.aspx" /> |
| | | <Content Include="Pages\work\BaoxiaoReplyAdd.aspx" /> |
| | | <Content Include="Pages\work\RequestReplyAdd.aspx" /> |
| | |
| | | <Compile Include="Pages\workcar\MemberDictionaryList.aspx.designer.cs"> |
| | | <DependentUpon>MemberDictionaryList.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_zhanghaomimaJuese.aspx.cs"> |
| | | <DependentUpon>Adm_zhanghaomimaJuese.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_zhanghaomimaJuese.aspx.designer.cs"> |
| | | <DependentUpon>Adm_zhanghaomimaJuese.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_zhanghaomimaDetail.aspx.cs"> |
| | | <DependentUpon>Adm_zhanghaomimaDetail.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_zhanghaomimaDetail.aspx.designer.cs"> |
| | | <DependentUpon>Adm_zhanghaomimaDetail.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_zhanghaomimaAdd.aspx.cs"> |
| | | <DependentUpon>Adm_zhanghaomimaAdd.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_zhanghaomimaAdd.aspx.designer.cs"> |
| | | <DependentUpon>Adm_zhanghaomimaAdd.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_tongxunluDetail.aspx.cs"> |
| | | <DependentUpon>Adm_tongxunluDetail.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_tongxunluDetail.aspx.designer.cs"> |
| | | <DependentUpon>Adm_tongxunluDetail.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_zhanghaomimaList.aspx.cs"> |
| | | <DependentUpon>Adm_zhanghaomimaList.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_zhanghaomimaList.aspx.designer.cs"> |
| | | <DependentUpon>Adm_zhanghaomimaList.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\work\BaoxiaoFukuanList.aspx.cs"> |
| | | <DependentUpon>BaoxiaoFukuanList.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | |
| | | <Compile Include="Pages\work\MyRequestList.aspx.designer.cs"> |
| | | <DependentUpon>MyRequestList.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_tongxunluAdd.aspx.cs"> |
| | | <DependentUpon>Adm_tongxunluAdd.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_tongxunluAdd.aspx.designer.cs"> |
| | | <DependentUpon>Adm_tongxunluAdd.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\work\OA_DocumentAdd.aspx.cs"> |
| | | <DependentUpon>OA_DocumentAdd.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | |
| | | <Compile Include="Pages\work\OA_DocumentDicDetail.aspx.designer.cs"> |
| | | <DependentUpon>OA_DocumentDicDetail.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_tongxunluJuese.aspx.cs"> |
| | | <DependentUpon>Adm_tongxunluJuese.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_tongxunluJuese.aspx.designer.cs"> |
| | | <DependentUpon>Adm_tongxunluJuese.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\work\OA_DocumentJuese.aspx.cs"> |
| | | <DependentUpon>OA_DocumentJuese.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | |
| | | <Compile Include="Pages\work\OA_DocumentDicList.aspx.designer.cs"> |
| | | <DependentUpon>OA_DocumentDicList.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_tongxunluList.aspx.cs"> |
| | | <DependentUpon>Adm_tongxunluList.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\work\Adm_tongxunluList.aspx.designer.cs"> |
| | | <DependentUpon>Adm_tongxunluList.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\work\OA_DocumentList.aspx.cs"> |
| | | <DependentUpon>OA_DocumentList.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Adm_tongxunluAdd.aspx.cs" Inherits="CY.WebForm.Pages.work.Adm_tongxunluAdd" %> |
| | | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head id="Head1" runat="server"> |
| | | <title>新增/修改通讯录管理</title> |
| | | <uc:CMSHead ID="CMSHead1" runat="server" /> |
| | | <script type="text/javascript"> |
| | | |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <%--<textarea id="txtExaminedRecore" runat="server" style="width: 370px; height: 50px;" class=""></textarea>--%> |
| | | <form id="form1" class="form2" runat="server"> |
| | | <div> |
| | | <table class="tableStyle" style="margin: 10px auto;" cellpadding="0" cellspacing="0"> |
| | | <tr> |
| | | <td class="ali03 w120px"> |
| | | 类别: |
| | | </td> |
| | | <td> |
| | | <select id="seltype" runat="server" keepdefaultstyle="true" class="w120px"> |
| | | |
| | | </select> |
| | | </td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td class="ali03"> |
| | | 单位名称: |
| | | </td> |
| | | <td > |
| | | <input id="txtDanweiName" type="text" class="w700px req" runat="server" maxlength="100" msg="请填写单位名称"/> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03"> |
| | | 联系人: |
| | | </td> |
| | | <td > |
| | | <input id="txtLianxiren" type="text" class="w700px req" runat="server" maxlength="100" msg="请填写联系人"/> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03"> |
| | | 联系电话: |
| | | </td> |
| | | <td > |
| | | <input id="txtLianxidianhua" type="text" class="w700px req" runat="server" maxlength="100" msg="请填写联系电话"/> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03" valign="top"> |
| | | 备注: |
| | | </td> |
| | | <td > |
| | | <asp:TextBox ID="txtBeuzhu" TextMode="MultiLine" runat="server" Width="690px" Height="60px" MaxLength="300"></asp:TextBox> |
| | | </td> |
| | | </tr> |
| | | |
| | | |
| | | |
| | | <tr> |
| | | <td colspan="2" style="text-align: center;"> |
| | | <asp:Button ID="btn_submit" runat="server" OnClick="btn_submit_form" Text="提交" /> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | </form> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using CY.Model; |
| | | using CY.BLL; |
| | | using CY.Infrastructure.Common; |
| | | using CY.Infrastructure.Query; |
| | | using CY.BLL.Sys; |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | //吴辉 |
| | | //新增/修改公文管理 |
| | | public partial class Adm_tongxunluAdd : BasePage |
| | | { |
| | | Adm_tongxunluBLL bll_Adm_tongxunluBLL = null; |
| | | Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; |
| | | //初始化 |
| | | public Adm_tongxunluAdd() |
| | | { |
| | | |
| | | bll_Adm_tongxunluBLL = new Adm_tongxunluBLL(); |
| | | bll_Sys_DictionaryBLL = new Sys_DictionaryBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | if (!IsPostBack) |
| | | { |
| | | Pagination pa = new Pagination(); |
| | | pa.PageSize = 500; |
| | | pa.PageIndex = 1; |
| | | this.seltype.DataSource = bll_Sys_DictionaryBLL.GetDataByType("Sys_通讯录"); |
| | | this.seltype.DataValueField = "MeanValue"; |
| | | this.seltype.DataTextField = "Name"; |
| | | this.seltype.DataBind(); |
| | | |
| | | InitData(); |
| | | } |
| | | } |
| | | |
| | | //数据加载 |
| | | public void InitData() |
| | | { |
| | | this.seltype.Value = ""; |
| | | this.txtDanweiName.Value = ""; |
| | | this.txtLianxiren.Value = ""; |
| | | this.txtLianxidianhua.Value = ""; |
| | | this.txtBeuzhu.Text = ""; |
| | | |
| | | |
| | | if (!string.IsNullOrEmpty(Request["keyid"])) |
| | | { |
| | | var adm_Tongxunlu = bll_Adm_tongxunluBLL.GetModelByKeyid(Request["keyid"].ToInt32().Value); |
| | | if (adm_Tongxunlu != null) |
| | | { |
| | | this.seltype.Value = adm_Tongxunlu.type_id.Value.ToString(); |
| | | this.txtDanweiName.Value = adm_Tongxunlu.danwei_name; |
| | | this.txtLianxiren.Value = adm_Tongxunlu.lianxiren; |
| | | this.txtLianxidianhua.Value = adm_Tongxunlu.lianxidianhua; |
| | | this.txtBeuzhu.Text = adm_Tongxunlu.beuzhu; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | //表单提交 |
| | | protected void btn_submit_form(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | DateTime nowTime = DateTime.Now; |
| | | Adm_tongxunlu adm_Tongxunlu = new Adm_tongxunlu(); |
| | | |
| | | if (!string.IsNullOrEmpty(Request["keyid"])) |
| | | { |
| | | adm_Tongxunlu = bll_Adm_tongxunluBLL.GetModelByKeyid(Request["keyid"].ToInt32().Value); |
| | | |
| | | adm_Tongxunlu.FirmId = CurrentUser.MemberId; |
| | | adm_Tongxunlu.type_id = this.seltype.Value.ToInt32().Value; |
| | | adm_Tongxunlu.danwei_name = this.txtDanweiName.Value.Trim(); |
| | | adm_Tongxunlu.lianxiren = this.txtLianxiren.Value.Trim(); |
| | | adm_Tongxunlu.lianxidianhua = this.txtLianxidianhua.Value.Trim(); |
| | | adm_Tongxunlu.beuzhu = this.txtBeuzhu.Text.Trim(); |
| | | adm_Tongxunlu.rec_status = "A"; |
| | | adm_Tongxunlu.modifier = CurrentUser.ShortName; |
| | | adm_Tongxunlu.modifytime = DateTime.Now; |
| | | |
| | | |
| | | if (bll_Adm_tongxunluBLL.UpdateModel(adm_Tongxunlu)) |
| | | { |
| | | JavaScript.MessageBox("修改成功", this, true, true); |
| | | //InitData(); |
| | | } |
| | | else |
| | | JavaScript.MessageBox("修改失败", this); |
| | | } |
| | | else |
| | | { |
| | | |
| | | adm_Tongxunlu.FirmId = CurrentUser.MemberId; |
| | | adm_Tongxunlu.type_id = this.seltype.Value.ToInt32().Value; |
| | | adm_Tongxunlu.danwei_name = this.txtDanweiName.Value.Trim(); |
| | | adm_Tongxunlu.lianxiren = this.txtLianxiren.Value.Trim(); |
| | | adm_Tongxunlu.lianxidianhua = this.txtLianxidianhua.Value.Trim(); |
| | | adm_Tongxunlu.beuzhu = this.txtBeuzhu.Text.Trim(); |
| | | adm_Tongxunlu.rec_status = "A"; |
| | | adm_Tongxunlu.creater = CurrentUser.ShortName; |
| | | adm_Tongxunlu.createtime = DateTime.Now; |
| | | adm_Tongxunlu.modifier = adm_Tongxunlu.creater; |
| | | adm_Tongxunlu.modifytime = adm_Tongxunlu.createtime; |
| | | |
| | | |
| | | |
| | | |
| | | if (bll_Adm_tongxunluBLL.InsertModel(adm_Tongxunlu)) |
| | | { |
| | | JavaScript.MessageBox("新增成功", this, false, true); |
| | | InitData(); |
| | | } |
| | | else |
| | | JavaScript.MessageBox("新增失败", this); |
| | | } |
| | | |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | JavaScript.MessageBox("操作失败", this); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | |
| | | |
| | | public partial class Adm_tongxunluAdd |
| | | { |
| | | |
| | | /// <summary> |
| | | /// Head1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlHead Head1; |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | /// <summary> |
| | | /// seltype 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect seltype; |
| | | |
| | | /// <summary> |
| | | /// txtDanweiName 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtDanweiName; |
| | | |
| | | /// <summary> |
| | | /// txtLianxiren 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtLianxiren; |
| | | |
| | | /// <summary> |
| | | /// txtLianxidianhua 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtLianxidianhua; |
| | | |
| | | /// <summary> |
| | | /// txtBeuzhu 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.TextBox txtBeuzhu; |
| | | |
| | | /// <summary> |
| | | /// btn_submit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_submit; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Adm_tongxunluDetail.aspx.cs" Inherits="CY.WebForm.Pages.work.Adm_tongxunluDetail" %> |
| | | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head id="Head1" runat="server"> |
| | | <title>新增/修改通讯录管理</title> |
| | | <uc:CMSHead ID="CMSHead1" runat="server" /> |
| | | <script type="text/javascript"> |
| | | |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <%--<textarea id="txtExaminedRecore" runat="server" style="width: 370px; height: 50px;" class=""></textarea>--%> |
| | | <form id="form1" class="form2" runat="server"> |
| | | <div> |
| | | <table class="tableStyle" style="margin: 10px auto;" cellpadding="0" cellspacing="0"> |
| | | <tr> |
| | | <td class="ali03 w120px"> |
| | | 类别: |
| | | </td> |
| | | <td> |
| | | |
| | | <span id="seltype" runat="server" ></span> |
| | | </td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td class="ali03"> |
| | | 单位名称: |
| | | </td> |
| | | <td > |
| | | |
| | | <span id="txtDanweiName" runat="server" ></span> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03"> |
| | | 联系人: |
| | | </td> |
| | | <td > |
| | | |
| | | <span id="txtLianxiren" runat="server" ></span> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03"> |
| | | 联系电话: |
| | | </td> |
| | | <td > |
| | | |
| | | <span id="txtLianxidianhua" runat="server" ></span> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03" valign="top"> |
| | | 备注: |
| | | </td> |
| | | <td > |
| | | |
| | | <span id="txtBeuzhu" runat="server" ></span> |
| | | </td> |
| | | </tr> |
| | | |
| | | |
| | | |
| | | |
| | | </table> |
| | | </div> |
| | | </form> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using CY.Model; |
| | | using CY.BLL; |
| | | using CY.Infrastructure.Common; |
| | | using CY.Infrastructure.Query; |
| | | using CY.BLL.Sys; |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | //吴辉 |
| | | //新增/修改公文管理 |
| | | public partial class Adm_tongxunluDetail : BasePage |
| | | { |
| | | Adm_tongxunluBLL bll_Adm_tongxunluBLL = null; |
| | | Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; |
| | | //初始化 |
| | | public Adm_tongxunluDetail() |
| | | { |
| | | |
| | | bll_Adm_tongxunluBLL = new Adm_tongxunluBLL(); |
| | | bll_Sys_DictionaryBLL = new Sys_DictionaryBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | if (!IsPostBack) |
| | | { |
| | | |
| | | |
| | | InitData(); |
| | | } |
| | | } |
| | | |
| | | //数据加载 |
| | | public void InitData() |
| | | { |
| | | |
| | | |
| | | |
| | | if (!string.IsNullOrEmpty(Request["keyid"])) |
| | | { |
| | | var adm_Tongxunlu = bll_Adm_tongxunluBLL.GetModelByKeyid(Request["keyid"].ToInt32().Value); |
| | | if (adm_Tongxunlu != null) |
| | | { |
| | | var sys_Dictionary = bll_Sys_DictionaryBLL.GetDataByType("Sys_通讯录").Where(x=>x.MeanValue == adm_Tongxunlu.type_id.Value).FirstOrDefault(); |
| | | if (sys_Dictionary != null) |
| | | { |
| | | this.seltype.InnerText = sys_Dictionary.Name; |
| | | } |
| | | this.txtDanweiName.InnerText = adm_Tongxunlu.danwei_name; |
| | | this.txtLianxiren.InnerText = adm_Tongxunlu.lianxiren; |
| | | this.txtLianxidianhua.InnerText = adm_Tongxunlu.lianxidianhua; |
| | | this.txtBeuzhu.InnerText = adm_Tongxunlu.beuzhu; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | |
| | | |
| | | public partial class Adm_tongxunluDetail |
| | | { |
| | | |
| | | /// <summary> |
| | | /// Head1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlHead Head1; |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | /// <summary> |
| | | /// seltype 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl seltype; |
| | | |
| | | /// <summary> |
| | | /// txtDanweiName 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtDanweiName; |
| | | |
| | | /// <summary> |
| | | /// txtLianxiren 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtLianxiren; |
| | | |
| | | /// <summary> |
| | | /// txtLianxidianhua 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtLianxidianhua; |
| | | |
| | | /// <summary> |
| | | /// txtBeuzhu 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtBeuzhu; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Adm_tongxunluJuese.aspx.cs" Inherits="CY.WebForm.Pages.work.Adm_tongxunluJuese" %> |
| | | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head id="Head1" runat="server"> |
| | | <title>通讯录基础数据列表</title> |
| | | <uc:CMSHead ID="CMSHead1" runat="server" /> |
| | | <script type="text/javascript"> |
| | | //查看 |
| | | function onEdit(keyid) { |
| | | top.Dialog.open({ URL: "/Pages/work/OA_DocumentDicDetail.aspx?keyid=" + keyid, Title: "通讯录基础数据明细", Width: 500, Height: 240 }); |
| | | } |
| | | |
| | | //添加 |
| | | function addModel() { |
| | | top.Dialog.open({ URL: "/Pages/work/OA_DocumentDicAdd.aspx", Title: "新增通讯录基础数据", Width: 500, Height: 240 }); |
| | | } |
| | | |
| | | //修改 |
| | | function EditModel(keyid) { |
| | | top.Dialog.open({ URL: "/Pages/work/OA_DocumentDicAdd.aspx?keyid=" + keyid, Title: "修改通讯录基础数据", Width: 500, Height: 240 }); |
| | | } |
| | | |
| | | //删除 |
| | | function onDele(keyid) { |
| | | top.Dialog.confirm("确定要删除该数据吗?", function () { |
| | | window.location = "/Pages/work/Adm_tongxunluJuese.aspx?delete=" + keyid; |
| | | }); |
| | | } |
| | | |
| | | |
| | | //批量删除 |
| | | function onAllDelete() { |
| | | var deleteKeyIds = ""; |
| | | $(":checkbox").each( |
| | | function () { |
| | | if ($(this).is(":checked")) { |
| | | deleteKeyIds += $(this).val() + ","; |
| | | } |
| | | } |
| | | ) |
| | | if (deleteKeyIds == "") { |
| | | // deleteKeyIds = deleteKeyIds.substring(0, deleteKeyIds.length - 1); |
| | | //window.location = "/Pages/work/OA_DocumentJuese.aspx?deleteKeyIds=" + deleteKeyIds + "&&orderkeyid=<%=keyid %>"; |
| | | $("#deleteKeyIds").val(deleteKeyIds); |
| | | } |
| | | else { |
| | | deleteKeyIds = deleteKeyIds.substring(0, deleteKeyIds.length - 1); |
| | | // window.location = "/Pages/work/OA_DocumentJuese.aspx?deleteKeyIds=" + deleteKeyIds + "&&orderkeyid=<%=keyid %>"; |
| | | $("#deleteKeyIds").val(deleteKeyIds); |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <form id="form1" runat="server"> |
| | | <div id="scrollContent"> |
| | | <div class="box_tool_min "> |
| | | <div class="center"> |
| | | <div class="left"> |
| | | <div class="right"> |
| | | <div class="padding_top5 padding_left10"> |
| | | |
| | | <%--<a href="javascript:;" onclick="onAllDelete()" menu_member_case_id="case_onBaocunJuese" menu_member_case_name="保存角色"><span class="icon_add">保存角色</span></a>--%> |
| | | |
| | | <asp:Button ID="btn_submit" runat="server" OnClientClick="onAllDelete()" OnClick="btn_submit_form" Text="提交" /> |
| | | <input type="hidden" id="deleteKeyIds" name="deleteKeyIds" runat="server" /> |
| | | <div class="clear"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="clear"> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <asp:Repeater ID="RepClientList" runat="server"> |
| | | <HeaderTemplate> |
| | | <table class="tableStyle"> |
| | | <tr> |
| | | <th width="25"> |
| | | </th> |
| | | <th width="30" style="text-align: center"> |
| | | 编号 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 名称 |
| | | </th> |
| | | |
| | | </tr> |
| | | </HeaderTemplate> |
| | | <ItemTemplate> |
| | | <tr> |
| | | <td> |
| | | <input type="checkbox" value='<%#Eval("Keyid")%>' <%#Eval("ShifouCheck") %> /> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Container.ItemIndex + 1 %> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("RoleName")%> |
| | | </td> |
| | | |
| | | </tr> |
| | | </ItemTemplate> |
| | | <FooterTemplate> |
| | | </table> |
| | | </FooterTemplate> |
| | | </asp:Repeater> |
| | | |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using CY.BLL; |
| | | using CY.Model; |
| | | using CY.Infrastructure.Query; |
| | | using CY.Infrastructure.Common; |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | //吴辉 |
| | | //公文基础数据列表 |
| | | public partial class Adm_tongxunluJuese : BasePage |
| | | { |
| | | Adm_tongxunluBLL bll_Adm_tongxunluBLL = null; |
| | | OA_FirmRoleBLL oA_FirmRoleBLL = null; |
| | | public string keyid = ""; |
| | | |
| | | //初始化 |
| | | public Adm_tongxunluJuese() |
| | | { |
| | | bll_Adm_tongxunluBLL = new Adm_tongxunluBLL(); |
| | | oA_FirmRoleBLL = new OA_FirmRoleBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | if (!IsPostBack) |
| | | { |
| | | BindList(); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | //绑定数据 |
| | | private void BindList() |
| | | { |
| | | keyid = Request["keyid"]; |
| | | if (!string.IsNullOrEmpty(Request["keyid"])) |
| | | { |
| | | var adm_Tongxunlu = bll_Adm_tongxunluBLL.GetModelByKeyid(Request["keyid"].ToInt32().Value); |
| | | if (adm_Tongxunlu != null) |
| | | { |
| | | var Jusequanxian = adm_Tongxunlu.Jusequanxian; |
| | | var oA_FirmRoles = oA_FirmRoleBLL.SelectList(CurrentUser.MemberId).Where(x=>x.IsUsed == true); |
| | | foreach(var oA_FirmRole in oA_FirmRoles) |
| | | { |
| | | if (!string.IsNullOrEmpty(Jusequanxian)) |
| | | { |
| | | var Jusequanxians = Jusequanxian.Split(','); |
| | | if(Jusequanxians.Count(x => x == oA_FirmRole.Keyid.Value.ToString()) > 0) |
| | | { |
| | | oA_FirmRole.ShifouCheck = "checked=\"checked\""; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | this.RepClientList.DataSource = oA_FirmRoles; |
| | | this.RepClientList.DataBind(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | //表单提交 |
| | | protected void btn_submit_form(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | |
| | | var adm_Tongxunlu = bll_Adm_tongxunluBLL.GetModelByKeyid(Request["keyid"].ToInt32().Value); |
| | | adm_Tongxunlu.Jusequanxian = deleteKeyIds.Value; |
| | | if (bll_Adm_tongxunluBLL.UpdateModel(adm_Tongxunlu)) |
| | | { |
| | | JavaScript.MessageBox("保存成功", this, true, false); |
| | | } |
| | | else |
| | | { |
| | | JavaScript.MessageBox("保存失败", this); |
| | | return; |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | JavaScript.MessageBox("保存失败", this); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | |
| | | |
| | | public partial class Adm_tongxunluJuese |
| | | { |
| | | |
| | | /// <summary> |
| | | /// Head1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlHead Head1; |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | /// <summary> |
| | | /// btn_submit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_submit; |
| | | |
| | | /// <summary> |
| | | /// deleteKeyIds 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputHidden deleteKeyIds; |
| | | |
| | | /// <summary> |
| | | /// RepClientList 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Repeater RepClientList; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Adm_tongxunluList.aspx.cs" Inherits="CY.WebForm.Pages.work.Adm_tongxunluList" %> |
| | | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head id="Head1" runat="server"> |
| | | <title>通讯录管理列表</title> |
| | | <uc:CMSHead ID="CMSHead1" runat="server" /> |
| | | <script type="text/javascript"> |
| | | //查看 |
| | | function onEdit(keyid) { |
| | | top.Dialog.open({ URL: "/Pages/work/Adm_tongxunluDetail.aspx?keyid=" + keyid, Title: "查看通讯录", Width: 500, Height: 400 }); |
| | | } |
| | | |
| | | //查看 |
| | | function Juesequanxian(keyid) { |
| | | |
| | | top.Dialog.open({ URL: "/Pages/work/Adm_tongxunluJuese.aspx?keyid=" + keyid, Title: "分配通讯录查看角色", Width: 850, Height: 600 }); |
| | | } |
| | | |
| | | //添加 |
| | | function addModel() { |
| | | top.Dialog.open({ URL: "/Pages/work/Adm_tongxunluAdd.aspx", Title: "新增通讯录管理", Width: 850, Height: 600 }); |
| | | } |
| | | |
| | | //添加 |
| | | function editModel(keyid) { |
| | | top.Dialog.open({ URL: "/Pages/work/Adm_tongxunluAdd.aspx?keyid=" + keyid, Title: "修改通讯录管理", Width: 850, Height: 600 }); |
| | | } |
| | | |
| | | //删除 |
| | | function onDele(keyid) { |
| | | top.Dialog.confirm("确定要删除该通讯录吗?", function () { |
| | | //window.location = "/Pages/work/Adm_tongxunluList.aspx?delete=" + keyid; |
| | | top.Dialog.open({ URL: "/Pages/work/Adm_tongxunluList.aspx?delete=" + keyid, Title: "删除通讯录管理", Width: 850, Height: 600 }); |
| | | }); |
| | | } |
| | | |
| | | //批量删除 |
| | | function onAllDelete() { |
| | | var deleteKeyIds = ""; |
| | | $(":checkbox").each( |
| | | function () { |
| | | if ($(this).is(":checked")) { |
| | | deleteKeyIds += $(this).val() + ","; |
| | | } |
| | | } |
| | | ) |
| | | if (deleteKeyIds == "") { |
| | | top.Dialog.alert("请选择要删除的通讯录", function () { |
| | | }); |
| | | return; |
| | | } |
| | | else { |
| | | deleteKeyIds = deleteKeyIds.substring(0, deleteKeyIds.length - 1); |
| | | top.Dialog.confirm("确定要删除所选通讯录吗?", function () { |
| | | window.location = "/Pages/work/Adm_tongxunluList.aspx?deleteKeyIds=" + deleteKeyIds; |
| | | }); |
| | | } |
| | | } |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <form id="form1" runat="server"> |
| | | <div id="scrollContent"> |
| | | <div class="box1" paneltitle="功能面板" roller="false"> |
| | | <table class="TableNewStyle" width="100%"> |
| | | <tr> |
| | | <td class="ali03"> |
| | | 类别: |
| | | </td> |
| | | <td> |
| | | <select id="seltype" runat="server" keepdefaultstyle="true"> |
| | | </select> |
| | | </td> |
| | | <td class="ali03"> |
| | | 单位名称: |
| | | </td> |
| | | <td> |
| | | <input type="text" id="txtdanwei_name" runat="server" class="w120px" /> |
| | | </td> |
| | | <td> |
| | | <asp:Button ID="btn_Submit" Text="查询" runat="server" OnClick="btn_Search_Click" /> |
| | | </td> |
| | | </tr> |
| | | |
| | | </table> |
| | | </div> |
| | | <div class="box_tool_min "> |
| | | <div class="center"> |
| | | <div class="left"> |
| | | <div class="right"> |
| | | <div class="padding_top5 padding_left10"> |
| | | <a href="javascript:;" onclick="addModel()" menu_member_case_id="case_addModel" menu_member_case_name="新增通讯录"><span class="icon_add">新增通讯录</span></a> |
| | | <%-- <div class="box_tool_line"> |
| | | </div> |
| | | <a href="javascript:;" onclick="onAllDelete()" menu_member_case_id="case_onAllDeleteList" menu_member_case_name="批量删除"><span class="icon_delete">批量删除</span></a>--%> |
| | | <div class="clear"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="clear"> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <asp:Repeater ID="RepClientList" runat="server"> |
| | | <HeaderTemplate> |
| | | <table class="tableStyle"> |
| | | <tr> |
| | | <th width="25"> |
| | | </th> |
| | | <th width="30" style="text-align: center"> |
| | | 编号 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 类别 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 单位名称 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 联系人 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 联系电话 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 备注 |
| | | </th> |
| | | |
| | | <th style="text-align: center"> |
| | | 操作 |
| | | </th> |
| | | </tr> |
| | | </HeaderTemplate> |
| | | <ItemTemplate> |
| | | <tr> |
| | | <td> |
| | | <input type="checkbox" value='<%#Eval("Keyid")%>' /> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Container.ItemIndex + 1+ this.UCPager1.PageSize * (this.UCPager1.PageIndex - 1)%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("typeName")%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("danwei_name")%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("lianxiren")%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("lianxidianhua")%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("beuzhu")%> |
| | | </td> |
| | | <td class="Operate " style="text-align: center"> |
| | | <span menu_member_case_id="case_OnDetail" menu_member_case_name="查看" onclick="onEdit('<%#Eval("Keyid")%>')">查看</span> |
| | | <span menu_member_case_id="case_OnUdate" menu_member_case_name="修改" onclick="editModel('<%#Eval("Keyid")%>')">修改</span> |
| | | <span menu_member_case_id="case_OnDele" menu_member_case_name="删除" onclick="onDele('<%#Eval("Keyid")%>')">删除</span> |
| | | |
| | | <span menu_member_case_id="case_Juesequanxian" menu_member_case_name="查看角色权限" onclick="Juesequanxian('<%#Eval("Keyid")%>')">查看角色权限</span> |
| | | |
| | | |
| | | |
| | | </td> |
| | | </tr> |
| | | </ItemTemplate> |
| | | <FooterTemplate> |
| | | </table> |
| | | </FooterTemplate> |
| | | </asp:Repeater> |
| | | <div id="page"> |
| | | <uc:UCPager ID="UCPager1" runat="server" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using CY.BLL; |
| | | using CY.Model; |
| | | using CY.Infrastructure.Query; |
| | | using CY.Infrastructure.Common; |
| | | using CY.BLL.Sys; |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | //吴辉 |
| | | //公文管理列表 |
| | | public partial class Adm_tongxunluList : BasePage |
| | | { |
| | | Adm_tongxunluBLL bll_Adm_tongxunluBLL = null; |
| | | Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; |
| | | OA_StaffBLL bll_OA_StaffBLL = null; |
| | | |
| | | //初始化 |
| | | public Adm_tongxunluList() |
| | | { |
| | | bll_Adm_tongxunluBLL = new Adm_tongxunluBLL(); |
| | | bll_Sys_DictionaryBLL = new Sys_DictionaryBLL(); |
| | | bll_OA_StaffBLL = new OA_StaffBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged; |
| | | if (!IsPostBack) |
| | | { |
| | | if (Request["delete"] != null) |
| | | { |
| | | Adm_tongxunlu model = bll_Adm_tongxunluBLL.GetModelByKeyid(Request["delete"].ToInt32().Value); |
| | | if (model != null && model.Keyid > 0) |
| | | { |
| | | model.rec_status = "D"; |
| | | model.modifier = CurrentUser.ShortName; |
| | | model.modifytime = DateTime.Now; |
| | | bll_Adm_tongxunluBLL.UpdateModel(model); |
| | | JavaScript.MessageBox("删除成功", this,true,true); |
| | | } |
| | | else |
| | | JavaScript.MessageBox("删除失败", this, true,false); |
| | | } |
| | | else |
| | | { |
| | | Pagination pa = new Pagination(); |
| | | pa.PageSize = 500; |
| | | pa.PageIndex = 1; |
| | | this.seltype.DataSource = bll_Sys_DictionaryBLL.GetDataByType("Sys_通讯录"); |
| | | this.seltype.DataValueField = "MeanValue"; |
| | | this.seltype.DataTextField = "Name"; |
| | | this.seltype.DataBind(); |
| | | this.seltype.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | BindList(); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | if (Request["deleteKeyIds"] != null) |
| | | { |
| | | List<int> deleteKeyIdList = new List<int>(); |
| | | string deleteKeyIds = Request["deleteKeyIds"].ToString().Trim(','); |
| | | string[] keyIdArry = deleteKeyIds.Split(','); |
| | | foreach (string keyId in keyIdArry) |
| | | { |
| | | Adm_tongxunlu model = bll_Adm_tongxunluBLL.GetModelByKeyid(keyId.ToInt32().Value); |
| | | if (model.Keyid != null && model != null) |
| | | bll_Adm_tongxunluBLL.DeleteModel(model); |
| | | else |
| | | { |
| | | JavaScript.MessageBox("删除失败", this); |
| | | return; |
| | | } |
| | | } |
| | | JavaScript.MessageBox("删除成功", this); |
| | | Response.Redirect("/Pages/work/Adm_tongxunluList.aspx"); |
| | | } |
| | | } |
| | | |
| | | //绑定数据 |
| | | private void BindList() |
| | | { |
| | | Pagination pa = new Pagination(); |
| | | pa.PageSize = UCPager1.AspNetPager.PageSize; |
| | | pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex; |
| | | |
| | | |
| | | |
| | | this.RepClientList.DataSource = bll_Adm_tongxunluBLL.SelectModelPage(pa, CurrentUser.MemberId, this.seltype.Value, this.txtdanwei_name.Value.Trim()); |
| | | this.RepClientList.DataBind(); |
| | | UCPager1.AspNetPager.RecordCount = pa.RecordCount; |
| | | } |
| | | |
| | | //分页事件 |
| | | protected void AspNetPager1_PageChanged(object src, EventArgs e) |
| | | { |
| | | BindList(); |
| | | } |
| | | |
| | | //查询事件 |
| | | protected void btn_Search_Click(object src, EventArgs e) |
| | | { |
| | | BindList(); |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | |
| | | |
| | | public partial class Adm_tongxunluList |
| | | { |
| | | |
| | | /// <summary> |
| | | /// Head1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlHead Head1; |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | /// <summary> |
| | | /// seltype 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect seltype; |
| | | |
| | | /// <summary> |
| | | /// txtdanwei_name 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtdanwei_name; |
| | | |
| | | /// <summary> |
| | | /// btn_Submit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_Submit; |
| | | |
| | | /// <summary> |
| | | /// RepClientList 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Repeater RepClientList; |
| | | |
| | | /// <summary> |
| | | /// UCPager1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.UCPager UCPager1; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Adm_zhanghaomimaAdd.aspx.cs" Inherits="CY.WebForm.Pages.work.Adm_zhanghaomimaAdd" %> |
| | | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head id="Head1" runat="server"> |
| | | <title>新增/修改通讯账号密码</title> |
| | | <uc:CMSHead ID="CMSHead1" runat="server" /> |
| | | <script type="text/javascript"> |
| | | |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <%--<textarea id="txtExaminedRecore" runat="server" style="width: 370px; height: 50px;" class=""></textarea>--%> |
| | | <form id="form1" class="form2" runat="server"> |
| | | <div> |
| | | <table class="tableStyle" style="margin: 10px auto;" cellpadding="0" cellspacing="0"> |
| | | <tr> |
| | | <td class="ali03 w120px"> |
| | | 类别: |
| | | </td> |
| | | <td> |
| | | <select id="seltype" runat="server" keepdefaultstyle="true" class="w120px"> |
| | | |
| | | </select> |
| | | </td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td class="ali03"> |
| | | 产品项目: |
| | | </td> |
| | | <td > |
| | | <input id="txtchanpinxiangmu" type="text" class="w700px req" runat="server" maxlength="100" msg="请填写产品项目"/> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03"> |
| | | 账号: |
| | | </td> |
| | | <td > |
| | | <input id="txtzhanghao" type="text" class="w700px req" runat="server" maxlength="100" msg="请填写账号"/> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03"> |
| | | 密码: |
| | | </td> |
| | | <td > |
| | | <input id="txtmima" type="text" class="w700px req" runat="server" maxlength="100" msg="请填写密码"/> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03" valign="top"> |
| | | 密保: |
| | | </td> |
| | | <td > |
| | | <asp:TextBox ID="txtmibao" TextMode="MultiLine" runat="server" Width="690px" Height="60px" MaxLength="300"></asp:TextBox> |
| | | </td> |
| | | </tr> |
| | | |
| | | |
| | | |
| | | <tr> |
| | | <td colspan="2" style="text-align: center;"> |
| | | <asp:Button ID="btn_submit" runat="server" OnClick="btn_submit_form" Text="提交" /> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | </form> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using CY.Model; |
| | | using CY.BLL; |
| | | using CY.Infrastructure.Common; |
| | | using CY.Infrastructure.Query; |
| | | using CY.BLL.Sys; |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | //吴辉 |
| | | //新增/修改公文管理 |
| | | public partial class Adm_zhanghaomimaAdd : BasePage |
| | | { |
| | | Adm_zhanghaomimaBLL bll_Adm_zhanghaomimaBLL = null; |
| | | Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; |
| | | //初始化 |
| | | public Adm_zhanghaomimaAdd() |
| | | { |
| | | |
| | | bll_Adm_zhanghaomimaBLL = new Adm_zhanghaomimaBLL(); |
| | | bll_Sys_DictionaryBLL = new Sys_DictionaryBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | if (!IsPostBack) |
| | | { |
| | | Pagination pa = new Pagination(); |
| | | pa.PageSize = 500; |
| | | pa.PageIndex = 1; |
| | | this.seltype.DataSource = bll_Sys_DictionaryBLL.GetDataByType("Sys_账号密码"); |
| | | this.seltype.DataValueField = "MeanValue"; |
| | | this.seltype.DataTextField = "Name"; |
| | | this.seltype.DataBind(); |
| | | |
| | | InitData(); |
| | | } |
| | | } |
| | | |
| | | //数据加载 |
| | | public void InitData() |
| | | { |
| | | this.seltype.Value = ""; |
| | | this.txtchanpinxiangmu.Value = ""; |
| | | this.txtzhanghao.Value = ""; |
| | | this.txtmima.Value = ""; |
| | | this.txtmibao.Text = ""; |
| | | |
| | | |
| | | if (!string.IsNullOrEmpty(Request["keyid"])) |
| | | { |
| | | var adm_zhanghaomima = bll_Adm_zhanghaomimaBLL.GetModelByKeyid(Request["keyid"].ToInt32().Value); |
| | | if (adm_zhanghaomima != null) |
| | | { |
| | | this.seltype.Value = adm_zhanghaomima.type_id.Value.ToString(); |
| | | this.txtchanpinxiangmu.Value = adm_zhanghaomima.chanpinxiangmu; |
| | | this.txtzhanghao.Value = adm_zhanghaomima.zhanghao; |
| | | this.txtmima.Value = adm_zhanghaomima.mima; |
| | | this.txtmibao.Text = adm_zhanghaomima.mibao; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | //表单提交 |
| | | protected void btn_submit_form(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | DateTime nowTime = DateTime.Now; |
| | | Adm_zhanghaomima adm_zhanghaomima = new Adm_zhanghaomima(); |
| | | |
| | | if (!string.IsNullOrEmpty(Request["keyid"])) |
| | | { |
| | | adm_zhanghaomima = bll_Adm_zhanghaomimaBLL.GetModelByKeyid(Request["keyid"].ToInt32().Value); |
| | | |
| | | adm_zhanghaomima.FirmId = CurrentUser.MemberId; |
| | | adm_zhanghaomima.type_id = this.seltype.Value.ToInt32().Value; |
| | | adm_zhanghaomima.chanpinxiangmu = this.txtchanpinxiangmu.Value.Trim(); |
| | | adm_zhanghaomima.zhanghao = this.txtzhanghao.Value.Trim(); |
| | | adm_zhanghaomima.mima = this.txtmima.Value.Trim(); |
| | | adm_zhanghaomima.mibao = this.txtmibao.Text.Trim(); |
| | | adm_zhanghaomima.rec_status = "A"; |
| | | adm_zhanghaomima.modifier = CurrentUser.ShortName; |
| | | adm_zhanghaomima.modifytime = DateTime.Now; |
| | | |
| | | |
| | | if (bll_Adm_zhanghaomimaBLL.UpdateModel(adm_zhanghaomima)) |
| | | { |
| | | JavaScript.MessageBox("修改成功", this, true, true); |
| | | //InitData(); |
| | | } |
| | | else |
| | | JavaScript.MessageBox("修改失败", this); |
| | | } |
| | | else |
| | | { |
| | | |
| | | adm_zhanghaomima.FirmId = CurrentUser.MemberId; |
| | | adm_zhanghaomima.type_id = this.seltype.Value.ToInt32().Value; |
| | | adm_zhanghaomima.chanpinxiangmu = this.txtchanpinxiangmu.Value.Trim(); |
| | | adm_zhanghaomima.zhanghao = this.txtzhanghao.Value.Trim(); |
| | | adm_zhanghaomima.mima = this.txtmima.Value.Trim(); |
| | | adm_zhanghaomima.mibao = this.txtmibao.Text.Trim(); |
| | | adm_zhanghaomima.rec_status = "A"; |
| | | adm_zhanghaomima.creater = CurrentUser.ShortName; |
| | | adm_zhanghaomima.createtime = DateTime.Now; |
| | | adm_zhanghaomima.modifier = adm_zhanghaomima.creater; |
| | | adm_zhanghaomima.modifytime = adm_zhanghaomima.createtime; |
| | | |
| | | |
| | | |
| | | |
| | | if (bll_Adm_zhanghaomimaBLL.InsertModel(adm_zhanghaomima)) |
| | | { |
| | | JavaScript.MessageBox("新增成功", this, false, true); |
| | | InitData(); |
| | | } |
| | | else |
| | | JavaScript.MessageBox("新增失败", this); |
| | | } |
| | | |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | JavaScript.MessageBox("操作失败", this); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | |
| | | |
| | | public partial class Adm_zhanghaomimaAdd |
| | | { |
| | | |
| | | /// <summary> |
| | | /// Head1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlHead Head1; |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | /// <summary> |
| | | /// seltype 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect seltype; |
| | | |
| | | /// <summary> |
| | | /// txtchanpinxiangmu 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtchanpinxiangmu; |
| | | |
| | | /// <summary> |
| | | /// txtzhanghao 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtzhanghao; |
| | | |
| | | /// <summary> |
| | | /// txtmima 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtmima; |
| | | |
| | | /// <summary> |
| | | /// txtmibao 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.TextBox txtmibao; |
| | | |
| | | /// <summary> |
| | | /// btn_submit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_submit; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Adm_zhanghaomimaDetail.aspx.cs" Inherits="CY.WebForm.Pages.work.Adm_zhanghaomimaDetail" %> |
| | | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head id="Head1" runat="server"> |
| | | <title>新增/修改账号密码管理</title> |
| | | <uc:CMSHead ID="CMSHead1" runat="server" /> |
| | | <script type="text/javascript"> |
| | | |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <%--<textarea id="txtExaminedRecore" runat="server" style="width: 370px; height: 50px;" class=""></textarea>--%> |
| | | <form id="form1" class="form2" runat="server"> |
| | | <div> |
| | | <table class="tableStyle" style="margin: 10px auto;" cellpadding="0" cellspacing="0"> |
| | | <tr> |
| | | <td class="ali03 w120px"> |
| | | 类别: |
| | | </td> |
| | | <td> |
| | | |
| | | <span id="seltype" runat="server" ></span> |
| | | </td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td class="ali03"> |
| | | 产品项目: |
| | | </td> |
| | | <td > |
| | | |
| | | <span id="txtchanpinxiangmu" runat="server" ></span> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03"> |
| | | 账号: |
| | | </td> |
| | | <td > |
| | | |
| | | <span id="txtzhanghao" runat="server" ></span> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03"> |
| | | 密码: |
| | | </td> |
| | | <td > |
| | | |
| | | <span id="txtmima" runat="server" ></span> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03" valign="top"> |
| | | 密保: |
| | | </td> |
| | | <td > |
| | | |
| | | <span id="txtmibao" runat="server" ></span> |
| | | </td> |
| | | </tr> |
| | | |
| | | |
| | | |
| | | |
| | | </table> |
| | | </div> |
| | | </form> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using CY.Model; |
| | | using CY.BLL; |
| | | using CY.Infrastructure.Common; |
| | | using CY.Infrastructure.Query; |
| | | using CY.BLL.Sys; |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | //吴辉 |
| | | //新增/修改公文管理 |
| | | public partial class Adm_zhanghaomimaDetail : BasePage |
| | | { |
| | | Adm_zhanghaomimaBLL bll_Adm_zhanghaomimaBLL = null; |
| | | Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; |
| | | //初始化 |
| | | public Adm_zhanghaomimaDetail() |
| | | { |
| | | |
| | | bll_Adm_zhanghaomimaBLL = new Adm_zhanghaomimaBLL(); |
| | | bll_Sys_DictionaryBLL = new Sys_DictionaryBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | if (!IsPostBack) |
| | | { |
| | | |
| | | |
| | | InitData(); |
| | | } |
| | | } |
| | | |
| | | //数据加载 |
| | | public void InitData() |
| | | { |
| | | |
| | | |
| | | |
| | | if (!string.IsNullOrEmpty(Request["keyid"])) |
| | | { |
| | | var adm_zhanghaomima = bll_Adm_zhanghaomimaBLL.GetModelByKeyid(Request["keyid"].ToInt32().Value); |
| | | if (adm_zhanghaomima != null) |
| | | { |
| | | var sys_Dictionary = bll_Sys_DictionaryBLL.GetDataByType("Sys_账号密码").Where(x=>x.MeanValue == adm_zhanghaomima.type_id.Value).FirstOrDefault(); |
| | | if (sys_Dictionary != null) |
| | | { |
| | | this.seltype.InnerText = sys_Dictionary.Name; |
| | | } |
| | | this.txtchanpinxiangmu.InnerText = adm_zhanghaomima.chanpinxiangmu; |
| | | this.txtzhanghao.InnerText = adm_zhanghaomima.zhanghao; |
| | | this.txtmima.InnerText = adm_zhanghaomima.mima; |
| | | this.txtmibao.InnerText = adm_zhanghaomima.mibao; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | |
| | | |
| | | public partial class Adm_zhanghaomimaDetail |
| | | { |
| | | |
| | | /// <summary> |
| | | /// Head1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlHead Head1; |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | /// <summary> |
| | | /// seltype 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl seltype; |
| | | |
| | | /// <summary> |
| | | /// txtchanpinxiangmu 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtchanpinxiangmu; |
| | | |
| | | /// <summary> |
| | | /// txtzhanghao 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtzhanghao; |
| | | |
| | | /// <summary> |
| | | /// txtmima 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtmima; |
| | | |
| | | /// <summary> |
| | | /// txtmibao 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtmibao; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Adm_zhanghaomimaJuese.aspx.cs" Inherits="CY.WebForm.Pages.work.Adm_zhanghaomimaJuese" %> |
| | | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head id="Head1" runat="server"> |
| | | <title>账号密码基础数据列表</title> |
| | | <uc:CMSHead ID="CMSHead1" runat="server" /> |
| | | <script type="text/javascript"> |
| | | //查看 |
| | | function onEdit(keyid) { |
| | | top.Dialog.open({ URL: "/Pages/work/OA_DocumentDicDetail.aspx?keyid=" + keyid, Title: "账号密码基础数据明细", Width: 500, Height: 240 }); |
| | | } |
| | | |
| | | //添加 |
| | | function addModel() { |
| | | top.Dialog.open({ URL: "/Pages/work/OA_DocumentDicAdd.aspx", Title: "新增账号密码基础数据", Width: 500, Height: 240 }); |
| | | } |
| | | |
| | | //修改 |
| | | function EditModel(keyid) { |
| | | top.Dialog.open({ URL: "/Pages/work/OA_DocumentDicAdd.aspx?keyid=" + keyid, Title: "修改账号密码基础数据", Width: 500, Height: 240 }); |
| | | } |
| | | |
| | | //删除 |
| | | function onDele(keyid) { |
| | | top.Dialog.confirm("确定要删除该数据吗?", function () { |
| | | window.location = "/Pages/work/Adm_zhanghaomimaJuese.aspx?delete=" + keyid; |
| | | }); |
| | | } |
| | | |
| | | |
| | | //批量删除 |
| | | function onAllDelete() { |
| | | var deleteKeyIds = ""; |
| | | $(":checkbox").each( |
| | | function () { |
| | | if ($(this).is(":checked")) { |
| | | deleteKeyIds += $(this).val() + ","; |
| | | } |
| | | } |
| | | ) |
| | | if (deleteKeyIds == "") { |
| | | // deleteKeyIds = deleteKeyIds.substring(0, deleteKeyIds.length - 1); |
| | | //window.location = "/Pages/work/OA_DocumentJuese.aspx?deleteKeyIds=" + deleteKeyIds + "&&orderkeyid=<%=keyid %>"; |
| | | $("#deleteKeyIds").val(deleteKeyIds); |
| | | } |
| | | else { |
| | | deleteKeyIds = deleteKeyIds.substring(0, deleteKeyIds.length - 1); |
| | | // window.location = "/Pages/work/OA_DocumentJuese.aspx?deleteKeyIds=" + deleteKeyIds + "&&orderkeyid=<%=keyid %>"; |
| | | $("#deleteKeyIds").val(deleteKeyIds); |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <form id="form1" runat="server"> |
| | | <div id="scrollContent"> |
| | | <div class="box_tool_min "> |
| | | <div class="center"> |
| | | <div class="left"> |
| | | <div class="right"> |
| | | <div class="padding_top5 padding_left10"> |
| | | |
| | | <%--<a href="javascript:;" onclick="onAllDelete()" menu_member_case_id="case_onBaocunJuese" menu_member_case_name="保存角色"><span class="icon_add">保存角色</span></a>--%> |
| | | |
| | | <asp:Button ID="btn_submit" runat="server" OnClientClick="onAllDelete()" OnClick="btn_submit_form" Text="提交" /> |
| | | <input type="hidden" id="deleteKeyIds" name="deleteKeyIds" runat="server" /> |
| | | <div class="clear"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="clear"> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <asp:Repeater ID="RepClientList" runat="server"> |
| | | <HeaderTemplate> |
| | | <table class="tableStyle"> |
| | | <tr> |
| | | <th width="25"> |
| | | </th> |
| | | <th width="30" style="text-align: center"> |
| | | 编号 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 名称 |
| | | </th> |
| | | |
| | | </tr> |
| | | </HeaderTemplate> |
| | | <ItemTemplate> |
| | | <tr> |
| | | <td> |
| | | <input type="checkbox" value='<%#Eval("Keyid")%>' <%#Eval("ShifouCheck") %> /> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Container.ItemIndex + 1 %> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("RoleName")%> |
| | | </td> |
| | | |
| | | </tr> |
| | | </ItemTemplate> |
| | | <FooterTemplate> |
| | | </table> |
| | | </FooterTemplate> |
| | | </asp:Repeater> |
| | | |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using CY.BLL; |
| | | using CY.Model; |
| | | using CY.Infrastructure.Query; |
| | | using CY.Infrastructure.Common; |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | //吴辉 |
| | | //公文基础数据列表 |
| | | public partial class Adm_zhanghaomimaJuese : BasePage |
| | | { |
| | | Adm_zhanghaomimaBLL bll_Adm_zhanghaomimaBLL = null; |
| | | OA_FirmRoleBLL oA_FirmRoleBLL = null; |
| | | public string keyid = ""; |
| | | |
| | | //初始化 |
| | | public Adm_zhanghaomimaJuese() |
| | | { |
| | | bll_Adm_zhanghaomimaBLL = new Adm_zhanghaomimaBLL(); |
| | | oA_FirmRoleBLL = new OA_FirmRoleBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | if (!IsPostBack) |
| | | { |
| | | BindList(); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | //绑定数据 |
| | | private void BindList() |
| | | { |
| | | keyid = Request["keyid"]; |
| | | if (!string.IsNullOrEmpty(Request["keyid"])) |
| | | { |
| | | var adm_zhanghaomima = bll_Adm_zhanghaomimaBLL.GetModelByKeyid(Request["keyid"].ToInt32().Value); |
| | | if (adm_zhanghaomima != null) |
| | | { |
| | | var Jusequanxian = adm_zhanghaomima.Jusequanxian; |
| | | var oA_FirmRoles = oA_FirmRoleBLL.SelectList(CurrentUser.MemberId).Where(x=>x.IsUsed == true); |
| | | foreach(var oA_FirmRole in oA_FirmRoles) |
| | | { |
| | | if (!string.IsNullOrEmpty(Jusequanxian)) |
| | | { |
| | | var Jusequanxians = Jusequanxian.Split(','); |
| | | if(Jusequanxians.Count(x => x == oA_FirmRole.Keyid.Value.ToString()) > 0) |
| | | { |
| | | oA_FirmRole.ShifouCheck = "checked=\"checked\""; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | this.RepClientList.DataSource = oA_FirmRoles; |
| | | this.RepClientList.DataBind(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | //表单提交 |
| | | protected void btn_submit_form(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | |
| | | var adm_zhanghaomima = bll_Adm_zhanghaomimaBLL.GetModelByKeyid(Request["keyid"].ToInt32().Value); |
| | | adm_zhanghaomima.Jusequanxian = deleteKeyIds.Value; |
| | | if (bll_Adm_zhanghaomimaBLL.UpdateModel(adm_zhanghaomima)) |
| | | { |
| | | JavaScript.MessageBox("保存成功", this, true, false); |
| | | } |
| | | else |
| | | { |
| | | JavaScript.MessageBox("保存失败", this); |
| | | return; |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | JavaScript.MessageBox("保存失败", this); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | |
| | | |
| | | public partial class Adm_zhanghaomimaJuese |
| | | { |
| | | |
| | | /// <summary> |
| | | /// Head1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlHead Head1; |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | /// <summary> |
| | | /// btn_submit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_submit; |
| | | |
| | | /// <summary> |
| | | /// deleteKeyIds 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputHidden deleteKeyIds; |
| | | |
| | | /// <summary> |
| | | /// RepClientList 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Repeater RepClientList; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Adm_zhanghaomimaList.aspx.cs" Inherits="CY.WebForm.Pages.work.Adm_zhanghaomimaList" %> |
| | | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head id="Head1" runat="server"> |
| | | <title>账号密码管理列表</title> |
| | | <uc:CMSHead ID="CMSHead1" runat="server" /> |
| | | <script type="text/javascript"> |
| | | //查看 |
| | | function onEdit(keyid) { |
| | | top.Dialog.open({ URL: "/Pages/work/Adm_zhanghaomimaDetail.aspx?keyid=" + keyid, Title: "查看账号密码", Width: 500, Height: 400 }); |
| | | } |
| | | |
| | | //查看 |
| | | function Juesequanxian(keyid) { |
| | | |
| | | top.Dialog.open({ URL: "/Pages/work/Adm_zhanghaomimaJuese.aspx?keyid=" + keyid, Title: "分配账号密码查看角色", Width: 850, Height: 600 }); |
| | | } |
| | | |
| | | //添加 |
| | | function addModel() { |
| | | top.Dialog.open({ URL: "/Pages/work/Adm_zhanghaomimaAdd.aspx", Title: "新增账号密码管理", Width: 850, Height: 600 }); |
| | | } |
| | | |
| | | //添加 |
| | | function editModel(keyid) { |
| | | top.Dialog.open({ URL: "/Pages/work/Adm_zhanghaomimaAdd.aspx?keyid=" + keyid, Title: "修改账号密码管理", Width: 850, Height: 600 }); |
| | | } |
| | | |
| | | //删除 |
| | | function onDele(keyid) { |
| | | top.Dialog.confirm("确定要删除该账号密码吗?", function () { |
| | | //window.location = "/Pages/work/Adm_zhanghaomimaList.aspx?delete=" + keyid; |
| | | top.Dialog.open({ URL: "/Pages/work/Adm_zhanghaomimaList.aspx?delete=" + keyid, Title: "删除账号密码管理", Width: 850, Height: 600 }); |
| | | }); |
| | | } |
| | | |
| | | //批量删除 |
| | | function onAllDelete() { |
| | | var deleteKeyIds = ""; |
| | | $(":checkbox").each( |
| | | function () { |
| | | if ($(this).is(":checked")) { |
| | | deleteKeyIds += $(this).val() + ","; |
| | | } |
| | | } |
| | | ) |
| | | if (deleteKeyIds == "") { |
| | | top.Dialog.alert("请选择要删除的账号密码", function () { |
| | | }); |
| | | return; |
| | | } |
| | | else { |
| | | deleteKeyIds = deleteKeyIds.substring(0, deleteKeyIds.length - 1); |
| | | top.Dialog.confirm("确定要删除所选账号密码吗?", function () { |
| | | window.location = "/Pages/work/Adm_zhanghaomimaList.aspx?deleteKeyIds=" + deleteKeyIds; |
| | | }); |
| | | } |
| | | } |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <form id="form1" runat="server"> |
| | | <div id="scrollContent"> |
| | | <div class="box1" paneltitle="功能面板" roller="false"> |
| | | <table class="TableNewStyle" width="100%"> |
| | | <tr> |
| | | <td class="ali03"> |
| | | 类别: |
| | | </td> |
| | | <td> |
| | | <select id="seltype" runat="server" keepdefaultstyle="true"> |
| | | </select> |
| | | </td> |
| | | <td class="ali03"> |
| | | 产品项目: |
| | | </td> |
| | | <td> |
| | | <input type="text" id="txtchanpinxiangmu" runat="server" class="w120px" /> |
| | | </td> |
| | | <td> |
| | | <asp:Button ID="btn_Submit" Text="查询" runat="server" OnClick="btn_Search_Click" /> |
| | | </td> |
| | | </tr> |
| | | |
| | | </table> |
| | | </div> |
| | | <div class="box_tool_min "> |
| | | <div class="center"> |
| | | <div class="left"> |
| | | <div class="right"> |
| | | <div class="padding_top5 padding_left10"> |
| | | <a href="javascript:;" onclick="addModel()" menu_member_case_id="case_addModel" menu_member_case_name="新增账号密码"><span class="icon_add">新增账号密码</span></a> |
| | | <%-- <div class="box_tool_line"> |
| | | </div> |
| | | <a href="javascript:;" onclick="onAllDelete()" menu_member_case_id="case_onAllDeleteList" menu_member_case_name="批量删除"><span class="icon_delete">批量删除</span></a>--%> |
| | | <div class="clear"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="clear"> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <asp:Repeater ID="RepClientList" runat="server"> |
| | | <HeaderTemplate> |
| | | <table class="tableStyle"> |
| | | <tr> |
| | | <th width="25"> |
| | | </th> |
| | | <th width="30" style="text-align: center"> |
| | | 编号 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 类别 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 产品项目 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 账号 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 密码 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 密保 |
| | | </th> |
| | | |
| | | <th style="text-align: center"> |
| | | 操作 |
| | | </th> |
| | | </tr> |
| | | </HeaderTemplate> |
| | | <ItemTemplate> |
| | | <tr> |
| | | <td> |
| | | <input type="checkbox" value='<%#Eval("Keyid")%>' /> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Container.ItemIndex + 1+ this.UCPager1.PageSize * (this.UCPager1.PageIndex - 1)%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("typeName")%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("chanpinxiangmu")%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("zhanghao")%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("mima")%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("mibao")%> |
| | | </td> |
| | | <td class="Operate " style="text-align: center"> |
| | | <span menu_member_case_id="case_OnDetail" menu_member_case_name="查看" onclick="onEdit('<%#Eval("Keyid")%>')">查看</span> |
| | | <span menu_member_case_id="case_OnUdate" menu_member_case_name="修改" onclick="editModel('<%#Eval("Keyid")%>')">修改</span> |
| | | <span menu_member_case_id="case_OnDele" menu_member_case_name="删除" onclick="onDele('<%#Eval("Keyid")%>')">删除</span> |
| | | |
| | | <span menu_member_case_id="case_Juesequanxian" menu_member_case_name="查看角色权限" onclick="Juesequanxian('<%#Eval("Keyid")%>')">查看角色权限</span> |
| | | |
| | | |
| | | |
| | | </td> |
| | | </tr> |
| | | </ItemTemplate> |
| | | <FooterTemplate> |
| | | </table> |
| | | </FooterTemplate> |
| | | </asp:Repeater> |
| | | <div id="page"> |
| | | <uc:UCPager ID="UCPager1" runat="server" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using CY.BLL; |
| | | using CY.Model; |
| | | using CY.Infrastructure.Query; |
| | | using CY.Infrastructure.Common; |
| | | using CY.BLL.Sys; |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | //吴辉 |
| | | //公文管理列表 |
| | | public partial class Adm_zhanghaomimaList : BasePage |
| | | { |
| | | Adm_zhanghaomimaBLL bll_Adm_zhanghaomimaBLL = null; |
| | | Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; |
| | | OA_StaffBLL bll_OA_StaffBLL = null; |
| | | |
| | | //初始化 |
| | | public Adm_zhanghaomimaList() |
| | | { |
| | | bll_Adm_zhanghaomimaBLL = new Adm_zhanghaomimaBLL(); |
| | | bll_Sys_DictionaryBLL = new Sys_DictionaryBLL(); |
| | | bll_OA_StaffBLL = new OA_StaffBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged; |
| | | if (!IsPostBack) |
| | | { |
| | | if (Request["delete"] != null) |
| | | { |
| | | Adm_zhanghaomima model = bll_Adm_zhanghaomimaBLL.GetModelByKeyid(Request["delete"].ToInt32().Value); |
| | | if (model != null && model.Keyid > 0) |
| | | { |
| | | model.rec_status = "D"; |
| | | model.modifier = CurrentUser.ShortName; |
| | | model.modifytime = DateTime.Now; |
| | | bll_Adm_zhanghaomimaBLL.UpdateModel(model); |
| | | JavaScript.MessageBox("删除成功", this,true,true); |
| | | } |
| | | else |
| | | JavaScript.MessageBox("删除失败", this, true,false); |
| | | } |
| | | else |
| | | { |
| | | Pagination pa = new Pagination(); |
| | | pa.PageSize = 500; |
| | | pa.PageIndex = 1; |
| | | this.seltype.DataSource = bll_Sys_DictionaryBLL.GetDataByType("Sys_账号密码"); |
| | | this.seltype.DataValueField = "MeanValue"; |
| | | this.seltype.DataTextField = "Name"; |
| | | this.seltype.DataBind(); |
| | | this.seltype.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | BindList(); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | if (Request["deleteKeyIds"] != null) |
| | | { |
| | | List<int> deleteKeyIdList = new List<int>(); |
| | | string deleteKeyIds = Request["deleteKeyIds"].ToString().Trim(','); |
| | | string[] keyIdArry = deleteKeyIds.Split(','); |
| | | foreach (string keyId in keyIdArry) |
| | | { |
| | | Adm_zhanghaomima model = bll_Adm_zhanghaomimaBLL.GetModelByKeyid(keyId.ToInt32().Value); |
| | | if ( model != null && model.Keyid >0 ) |
| | | bll_Adm_zhanghaomimaBLL.DeleteModel(model); |
| | | else |
| | | { |
| | | JavaScript.MessageBox("删除失败", this); |
| | | return; |
| | | } |
| | | } |
| | | JavaScript.MessageBox("删除成功", this); |
| | | Response.Redirect("/Pages/work/Adm_zhanghaomimaList.aspx"); |
| | | } |
| | | } |
| | | |
| | | //绑定数据 |
| | | private void BindList() |
| | | { |
| | | Pagination pa = new Pagination(); |
| | | pa.PageSize = UCPager1.AspNetPager.PageSize; |
| | | pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex; |
| | | |
| | | |
| | | |
| | | this.RepClientList.DataSource = bll_Adm_zhanghaomimaBLL.SelectModelPage(pa, CurrentUser.MemberId, this.seltype.Value, this.txtchanpinxiangmu.Value.Trim()); |
| | | this.RepClientList.DataBind(); |
| | | UCPager1.AspNetPager.RecordCount = pa.RecordCount; |
| | | } |
| | | |
| | | //分页事件 |
| | | protected void AspNetPager1_PageChanged(object src, EventArgs e) |
| | | { |
| | | BindList(); |
| | | } |
| | | |
| | | //查询事件 |
| | | protected void btn_Search_Click(object src, EventArgs e) |
| | | { |
| | | BindList(); |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | |
| | | |
| | | public partial class Adm_zhanghaomimaList |
| | | { |
| | | |
| | | /// <summary> |
| | | /// Head1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlHead Head1; |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | /// <summary> |
| | | /// seltype 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect seltype; |
| | | |
| | | /// <summary> |
| | | /// txtchanpinxiangmu 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtchanpinxiangmu; |
| | | |
| | | /// <summary> |
| | | /// btn_Submit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_Submit; |
| | | |
| | | /// <summary> |
| | | /// RepClientList 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Repeater RepClientList; |
| | | |
| | | /// <summary> |
| | | /// UCPager1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.UCPager UCPager1; |
| | | } |
| | | } |