20250722 通讯录账号密码显示查看权限,根据查看权限查询 完成
| | |
| | | /// </summary> |
| | | /// <param name="pa"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Adm_tongxunlu> SelectModelPage(Pagination pa, Guid FirmId, string type_id, string danwei_name,bool IsChangyongziliao,int? staffid) |
| | | public IEnumerable<Adm_tongxunlu> SelectModelPage(Pagination pa, Guid FirmId, string type_id, string danwei_name,bool IsChangyongziliao,int? staffid, string selquanxin) |
| | | { |
| | | string Condition = " and ok.FirmId ='" + FirmId + "' and ok.rec_status = 'A' "; |
| | | |
| | |
| | | Condition += " and ok.type_id = " + type_id + ""; |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(selquanxin)) |
| | | { |
| | | if (selquanxin == "1") |
| | | { |
| | | Condition += " and ( ok.[Jusequanxian] = '' or ok.[Jusequanxian] = ',,' )"; |
| | | } |
| | | else if (selquanxin == "2") |
| | | { |
| | | Condition += " and (ok.[Jusequanxian] != '' and ok.[Jusequanxian] != ',,' )"; |
| | | } |
| | | |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(danwei_name)) |
| | | { |
| | | Condition += " and ok.danwei_name like '%" + danwei_name + "%'"; |
| | |
| | | /// </summary> |
| | | /// <param name="pa"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Adm_zhanghaomima> SelectModelPage(Pagination pa, Guid FirmId, string type_id, string chanpinxiangmu, bool IsChangyongziliao, int? staffid) |
| | | public IEnumerable<Adm_zhanghaomima> SelectModelPage(Pagination pa, Guid FirmId, string type_id, string chanpinxiangmu, bool IsChangyongziliao, int? staffid, string selquanxin) |
| | | { |
| | | string Condition = " and ok.FirmId ='" + FirmId + "' and ok.rec_status = 'A' "; |
| | | |
| | |
| | | Condition += " and ok.type_id = " + type_id + ""; |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(selquanxin)) |
| | | { |
| | | if (selquanxin == "1") |
| | | { |
| | | Condition += " and ( ok.[Jusequanxian] = '' or ok.[Jusequanxian] = ',,' )"; |
| | | } |
| | | else if (selquanxin == "2") |
| | | { |
| | | Condition += " and (ok.[Jusequanxian] != '' and ok.[Jusequanxian] != ',,' )"; |
| | | } |
| | | |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(chanpinxiangmu)) |
| | | { |
| | | Condition += " and ok.chanpinxiangmu like '%" + chanpinxiangmu + "%'"; |
| | |
| | | /// beuzhu |
| | | /// </summary> |
| | | public string beuzhu { get; set; } |
| | | public string beuzhuName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// rec_status A/D |
| | |
| | | set; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// Jusequanxian |
| | | /// </summary> |
| | | public string JusequanxianName |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | public string JusequanxianNameshot |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | |
| | | #endregion Model |
| | | |
| | | #region Visiter |
| | |
| | | /// mibao |
| | | /// </summary> |
| | | public string mibao { get; set; } |
| | | public string mibaoName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// rec_status A/D |
| | |
| | | set; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// Jusequanxian |
| | | /// </summary> |
| | | public string JusequanxianName |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | public string JusequanxianNameshot |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | #endregion Model |
| | | |
| | | #region Visiter |
| | |
| | | |
| | | |
| | | |
| | | <a href='javascript:void(0)' title=' <%#Eval("KaipiaoshenqingName")%> ' class='a_under' onclick='<%#Eval("Kaipiaoshenqing").ToString()=="1"?"Viewkehu(\""+Eval("Keyid")+"\")":"" %> '> <%#Eval("KaipiaoshenqingName")%> </a> |
| | | <a href='javascript:void(0)' title=' <%#Eval("KaipiaoshenqingName")%> ' class='a_under' onclick='Viewkehu("<%#Eval("Keyid") %>")'> <%#Eval("KaipiaoshenqingName")%> </a> |
| | | |
| | | |
| | | |
| | |
| | | _eC_OrderBLL = new EC_OrderBLL(); |
| | | btnSubmit.ServerClick += new EventHandler(btnSubmit_ServerClick); |
| | | |
| | | if (!IsPostBack) |
| | | { |
| | | LoadOrder(); |
| | | } |
| | | |
| | | if (IsPostBack || IsCallback) |
| | | return; |
| | | |
| | |
| | | //this.txtSellerOrderId.InnerText = oA_Kaipiaoshenqing.SellerOrderId; |
| | | this.txtshuliang.InnerText = oA_Kaipiaoshenqing.Dingdanshu.ToString(); |
| | | |
| | | |
| | | this.txtFapiaohao.Value = oA_Kaipiaoshenqing.Fapiaohao; |
| | | |
| | | |
| | | |
| | |
| | | |
| | | if ($("#department" + departid).is(':checked')) { |
| | | $(".depart" + departid).show(); |
| | | $(".depart" + departid).attr('checked', true); |
| | | $(".spann" + departid).show(); |
| | | } else { |
| | | $(".depart" + departid).hide(); |
| | |
| | | } |
| | | |
| | | } |
| | | staffs += " <input type=\"checkbox\" name = \"depart\" class=\"depart" + departid + "\" value='" + oA_Staffs[i].Keyid + "' />" + "" + "<span class=\"spann" + departid + "\" >" + oA_Staffs[i].Name+"</span>"; |
| | | staffs += " <input type=\"checkbox\" name = \"depart\" checked=\"checked\" class=\"depart" + departid + "\" value='" + oA_Staffs[i].Keyid + "' />" + "" + "<span class=\"spann" + departid + "\" >" + oA_Staffs[i].Name+"</span>"; |
| | | |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | function changedepartment(departid) { |
| | | |
| | | |
| | | if ($("#department" + departid).is(':checked')) { |
| | | $(".depart" + departid).show(); |
| | | $(".depart" + departid).attr('checked', true); |
| | | $(".spann" + departid).show(); |
| | | } else { |
| | | $(".depart" + departid).hide(); |
| | | $(".spann" + departid).hide(); |
| | | $(".depart" + departid).attr('checked', false); |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | </head> |
| | | <body> |
| | |
| | | <div> |
| | | <table class="tableStyle" style="margin: 10px auto;" cellpadding="0" cellspacing="0"> |
| | | <tr> |
| | | <td class="ali03" valign="top"> |
| | | <td class="ali03 w120px" valign="top"> |
| | | 查看员工: |
| | | </td> |
| | | <td > |
| | |
| | | //绑定数据 |
| | | private void BindList() |
| | | { |
| | | string departid = ""; |
| | | var oA_Staffs = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, false, false).OrderBy(x => x.DepartmentId).ToList(); |
| | | for (int i = 0; i < oA_Staffs.Count; i++) |
| | | { |
| | |
| | | var department = bll_OA_DepartmentBll.GetModelByKeyid(oA_Staffs[i].DepartmentId); |
| | | if (department != null) |
| | | { |
| | | staffs += "<br/>" + department.Name + ":"; |
| | | departid = department.Keyid.Value.ToString(); |
| | | staffs += "<br/> <input type=\"checkbox\" id=\"department" + department.Keyid + "\" checked=\"checked\" value='" + department.Keyid + "' onchange=\"changedepartment('" + department.Keyid + "')\" />" + department.Name + ":"; |
| | | } |
| | | } |
| | | if (i == 0) |
| | |
| | | var department = bll_OA_DepartmentBll.GetModelByKeyid(oA_Staffs[i].DepartmentId); |
| | | if (department != null) |
| | | { |
| | | staffs += department.Name + ":"; |
| | | departid = department.Keyid.Value.ToString(); |
| | | staffs += " <input type=\"checkbox\" id=\"department" + department.Keyid + "\" checked=\"checked\" value='" + department.Keyid + "' onchange=\"changedepartment('" + department.Keyid + "')\" />" + department.Name + ":"; |
| | | } |
| | | |
| | | } |
| | | staffs += " <input type=\"checkbox\" value='" + oA_Staffs[i].Keyid + "' />" + oA_Staffs[i].Name; |
| | | staffs += " <input type=\"checkbox\" name = \"depart\" checked=\"checked\" class=\"depart" + departid + "\" value='" + oA_Staffs[i].Keyid + "' />" + "" + "<span class=\"spann" + departid + "\" >" + oA_Staffs[i].Name + "</span>"; |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | if (ssss) |
| | | { |
| | | JavaScript.MessageBox("保存成功", this, true, false); |
| | | JavaScript.MessageBox("保存成功", this, true, true); |
| | | } |
| | | else |
| | | { |
| | |
| | | <td> |
| | | <input type="text" id="txtdanwei_name" runat="server" class="w120px" /> |
| | | </td> |
| | | |
| | | <td class="ali03"> |
| | | 查看权限: |
| | | </td> |
| | | <td> |
| | | <select id="selquanxin" runat="server" keepdefaultstyle="true"> |
| | | <option value="">请选择</option> |
| | | <option value="1">全部同事</option> |
| | | <option value="2">部分同事</option> |
| | | </select> |
| | | </td> |
| | | <td> |
| | | <asp:Button ID="btn_Submit" Text="查询" runat="server" OnClick="btn_Search_Click" /> |
| | | </td> |
| | |
| | | <div> |
| | | <asp:Repeater ID="RepClientList" runat="server"> |
| | | <HeaderTemplate> |
| | | <table class="tableStyle"> |
| | | <table class="tableStyle" width="100%;"> |
| | | <tr> |
| | | <th width="25"> |
| | | </th> |
| | | <th width="30" style="text-align: center"> |
| | | 编号 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | <th style="text-align: center"width="30"> |
| | | 类别 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | <th style="text-align: center"width="30"> |
| | | 单位名称 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | <th style="text-align: center"width="30"> |
| | | 联系人 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | <th style="text-align: center"width="30"> |
| | | 联系电话 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | <th style="text-align: center"width="300"> |
| | | 备注 |
| | | </th> |
| | | |
| | | <th style="text-align: center"> |
| | | <th style="text-align: center"width="300"> |
| | | 查看权限 |
| | | </th> |
| | | <th style="text-align: center"width="100"> |
| | | 操作 |
| | | </th> |
| | | </tr> |
| | |
| | | <td style="text-align: center"> |
| | | <%#Eval("lianxidianhua")%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("beuzhu")%> |
| | | <td style="text-align: center" title="<%#Eval("beuzhu")%>"> |
| | | <%#Eval("beuzhuName")%> |
| | | </td> |
| | | <td style="text-align: center" title="<%#Eval("JusequanxianName")%>"> |
| | | <%#Eval("JusequanxianNameshot")%> |
| | | </td> |
| | | <td class="Operate " style="text-align: center"> |
| | | <span menu_member_case_id="case_OnDetail" menu_member_case_name="查看" onclick="onEdit('<%#Eval("Keyid")%>')">查看</span> |
| | |
| | | pa.PageSize = UCPager1.AspNetPager.PageSize; |
| | | pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex; |
| | | |
| | | var adm_Tongxunlus = bll_Adm_tongxunluBLL.SelectModelPage(pa, CurrentUser.MemberId, this.seltype.Value, this.txtdanwei_name.Value.Trim(), IsChangyongziliao, CurrentUser.StaffId, this.selquanxin.Value); |
| | | if(adm_Tongxunlus!=null) |
| | | { |
| | | var oA_Staffs = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId,null,null); |
| | | foreach(var adm_Tongxunlu in adm_Tongxunlus) |
| | | { |
| | | if (adm_Tongxunlu.beuzhu.Length > 40) |
| | | { |
| | | adm_Tongxunlu.beuzhuName = adm_Tongxunlu.beuzhu.Substring(0, 40); |
| | | } |
| | | else |
| | | { |
| | | adm_Tongxunlu.beuzhuName = adm_Tongxunlu.beuzhu; |
| | | } |
| | | if (string.IsNullOrEmpty(adm_Tongxunlu.Jusequanxian)) |
| | | { |
| | | adm_Tongxunlu.JusequanxianName = ""; |
| | | |
| | | } |
| | | else |
| | | { |
| | | var Jusequanxia = adm_Tongxunlu.Jusequanxian.Trim(',').Split(','); |
| | | var Jusequanxian = new List<int?>(); |
| | | foreach(var jjj in Jusequanxia) |
| | | { |
| | | Jusequanxian.Add(jjj.ToInt32()); |
| | | } |
| | | |
| | | this.RepClientList.DataSource = bll_Adm_tongxunluBLL.SelectModelPage(pa, CurrentUser.MemberId, this.seltype.Value, this.txtdanwei_name.Value.Trim(), IsChangyongziliao, CurrentUser.StaffId); |
| | | var staffs = oA_Staffs.Where(x => Jusequanxian.Contains(x.Keyid)).ToList(); |
| | | adm_Tongxunlu.JusequanxianName = ""; |
| | | foreach (var staff in staffs) |
| | | { |
| | | adm_Tongxunlu.JusequanxianName += staff.Name + ","; |
| | | } |
| | | if (adm_Tongxunlu.JusequanxianName.Length > 40) |
| | | { |
| | | adm_Tongxunlu.JusequanxianNameshot = adm_Tongxunlu.JusequanxianName.Substring(0, 40); |
| | | } |
| | | else |
| | | { |
| | | adm_Tongxunlu.JusequanxianNameshot = adm_Tongxunlu.JusequanxianName; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | this.RepClientList.DataSource = adm_Tongxunlus; |
| | | this.RepClientList.DataBind(); |
| | | UCPager1.AspNetPager.RecordCount = pa.RecordCount; |
| | | } |
| | |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtdanwei_name; |
| | | |
| | | /// <summary> |
| | | /// selquanxin 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selquanxin; |
| | | |
| | | /// <summary> |
| | | /// btn_Submit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | |
| | | |
| | | if ($("#department" + departid).is(':checked')) { |
| | | $(".depart" + departid).show(); |
| | | $(".depart" + departid).attr('checked', true); |
| | | $(".spann" + departid).show(); |
| | | } else { |
| | | $(".depart" + departid).hide(); |
| | |
| | | } |
| | | |
| | | } |
| | | staffs += " <input type=\"checkbox\" name = \"depart\" class=\"depart" + departid + "\" value='" + oA_Staffs[i].Keyid + "' />" + "" + "<span class=\"spann" + departid + "\" >" + oA_Staffs[i].Name + "</span>"; |
| | | staffs += " <input type=\"checkbox\" name = \"depart\" class=\"depart" + departid + "\" checked=\"checked\" value='" + oA_Staffs[i].Keyid + "' />" + "" + "<span class=\"spann" + departid + "\" >" + oA_Staffs[i].Name + "</span>"; |
| | | |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | function changedepartment(departid) { |
| | | |
| | | |
| | | if ($("#department" + departid).is(':checked')) { |
| | | $(".depart" + departid).show(); |
| | | $(".depart" + departid).attr('checked', true); |
| | | $(".spann" + departid).show(); |
| | | } else { |
| | | $(".depart" + departid).hide(); |
| | | $(".spann" + departid).hide(); |
| | | $(".depart" + departid).attr('checked', false); |
| | | } |
| | | } |
| | | </script> |
| | | </head> |
| | | <body> |
| | |
| | | <div> |
| | | <table class="tableStyle" style="margin: 10px auto;" cellpadding="0" cellspacing="0"> |
| | | <tr> |
| | | <td class="ali03" valign="top"> |
| | | <td class="ali03 w120px" valign="top"> |
| | | 查看员工: |
| | | </td> |
| | | <td > |
| | |
| | | { |
| | | // var adm_zhanghaomima = bll_Adm_zhanghaomimaBLL.GetModelByKeyids(Request["keyid"]).ToList(); |
| | | |
| | | |
| | | string departid = ""; |
| | | |
| | | |
| | | |
| | |
| | | var department = bll_OA_DepartmentBll.GetModelByKeyid(oA_Staffs[i].DepartmentId); |
| | | if (department != null) |
| | | { |
| | | staffs += "<br/>" + department.Name + ":"; |
| | | departid = department.Keyid.Value.ToString(); |
| | | staffs += "<br/> <input type=\"checkbox\" id=\"department" + department.Keyid + "\" checked=\"checked\" value='" + department.Keyid + "' onchange=\"changedepartment('" + department.Keyid + "')\" />" + department.Name + ":"; |
| | | } |
| | | } |
| | | if (i == 0) |
| | |
| | | var department = bll_OA_DepartmentBll.GetModelByKeyid(oA_Staffs[i].DepartmentId); |
| | | if (department != null) |
| | | { |
| | | staffs += department.Name + ":"; |
| | | departid = department.Keyid.Value.ToString(); |
| | | staffs += " <input type=\"checkbox\" id=\"department" + department.Keyid + "\" checked=\"checked\" value='" + department.Keyid + "' onchange=\"changedepartment('" + department.Keyid + "')\" />" + department.Name + ":"; |
| | | } |
| | | |
| | | } |
| | | staffs += " <input type=\"checkbox\" value='" + oA_Staffs[i].Keyid + "' />" + oA_Staffs[i].Name; |
| | | staffs += " <input type=\"checkbox\" name = \"depart\" checked=\"checked\" class=\"depart" + departid + "\" value='" + oA_Staffs[i].Keyid + "' />" + "" + "<span class=\"spann" + departid + "\" >" + oA_Staffs[i].Name + "</span>"; |
| | | |
| | | } |
| | | // } |
| | |
| | | |
| | | if (ssss) |
| | | { |
| | | JavaScript.MessageBox("保存成功", this, true, false); |
| | | JavaScript.MessageBox("保存成功", this, true, true); |
| | | } |
| | | else |
| | | { |
| | |
| | | <td> |
| | | <input type="text" id="txtchanpinxiangmu" runat="server" class="w120px" /> |
| | | </td> |
| | | |
| | | <td class="ali03"> |
| | | 查看权限: |
| | | </td> |
| | | <td> |
| | | <select id="selquanxin" runat="server" keepdefaultstyle="true"> |
| | | <option value="">请选择</option> |
| | | <option value="1">全部同事</option> |
| | | <option value="2">部分同事</option> |
| | | </select> |
| | | </td> |
| | | <td> |
| | | <asp:Button ID="btn_Submit" Text="查询" runat="server" OnClick="btn_Search_Click" /> |
| | | </td> |
| | |
| | | <div> |
| | | <asp:Repeater ID="RepClientList" runat="server"> |
| | | <HeaderTemplate> |
| | | <table class="tableStyle"> |
| | | <table class="tableStyle" width="100%;"> |
| | | <tr> |
| | | <th width="25"> |
| | | </th> |
| | | <th width="30" style="text-align: center"> |
| | | 编号 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | <th style="text-align: center" width="30" > |
| | | 类别 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | <th style="text-align: center" width="30" > |
| | | 项目 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | <th style="text-align: center" width="30" > |
| | | 账号 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | <th style="text-align: center" width="30" > |
| | | 密码 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | <th style="text-align: center" width="200" > |
| | | 密保 |
| | | </th> |
| | | <th style="text-align: center"width="200"> |
| | | 查看权限 |
| | | </th> |
| | | |
| | | <th style="text-align: center"> |
| | | <th style="text-align: center" width="100" > |
| | | 操作 |
| | | </th> |
| | | </tr> |
| | |
| | | <td style="text-align: center"> |
| | | <%#Eval("mima")%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("mibao")%> |
| | | <td style="text-align: center" title="<%#Eval("mibao")%>"> |
| | | <%#Eval("mibaoName")%> |
| | | </td> |
| | | <td style="text-align: center" title="<%#Eval("JusequanxianName")%>"> |
| | | <%#Eval("JusequanxianNameshot")%> |
| | | </td> |
| | | <td class="Operate " style="text-align: center"> |
| | | <span menu_member_case_id="case_OnDetail" menu_member_case_name="查看" onclick="onEdit('<%#Eval("Keyid")%>')">查看</span> |
| | |
| | | |
| | | |
| | | |
| | | this.RepClientList.DataSource = bll_Adm_zhanghaomimaBLL.SelectModelPage(pa, CurrentUser.MemberId, this.seltype.Value, this.txtchanpinxiangmu.Value.Trim(), IsChangyongziliao, CurrentUser.StaffId); |
| | | var adm_Zhanghaomimas = bll_Adm_zhanghaomimaBLL.SelectModelPage(pa, CurrentUser.MemberId, this.seltype.Value, this.txtchanpinxiangmu.Value.Trim(), IsChangyongziliao, CurrentUser.StaffId, this.selquanxin.Value); |
| | | if (adm_Zhanghaomimas != null) |
| | | { |
| | | var oA_Staffs = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null); |
| | | foreach (var adm_Tongxunlu in adm_Zhanghaomimas) |
| | | { |
| | | if (adm_Tongxunlu.mibao.Length > 30) |
| | | { |
| | | adm_Tongxunlu.mibaoName = adm_Tongxunlu.mibao.Substring(0, 30); |
| | | } |
| | | else |
| | | { |
| | | adm_Tongxunlu.mibaoName = adm_Tongxunlu.mibao; |
| | | } |
| | | if (string.IsNullOrEmpty(adm_Tongxunlu.Jusequanxian)) |
| | | { |
| | | adm_Tongxunlu.JusequanxianName = ""; |
| | | |
| | | } |
| | | else |
| | | { |
| | | var Jusequanxia = adm_Tongxunlu.Jusequanxian.Trim(',').Split(','); |
| | | var Jusequanxian = new List<int?>(); |
| | | foreach (var jjj in Jusequanxia) |
| | | { |
| | | Jusequanxian.Add(jjj.ToInt32()); |
| | | } |
| | | |
| | | var staffs = oA_Staffs.Where(x => Jusequanxian.Contains(x.Keyid)).ToList(); |
| | | adm_Tongxunlu.JusequanxianName = ""; |
| | | foreach (var staff in staffs) |
| | | { |
| | | adm_Tongxunlu.JusequanxianName += staff.Name + ","; |
| | | } |
| | | if (adm_Tongxunlu.JusequanxianName.Length > 30) |
| | | { |
| | | adm_Tongxunlu.JusequanxianNameshot = adm_Tongxunlu.JusequanxianName.Substring(0, 30); |
| | | } |
| | | else |
| | | { |
| | | adm_Tongxunlu.JusequanxianNameshot = adm_Tongxunlu.JusequanxianName; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | this.RepClientList.DataSource = adm_Zhanghaomimas; |
| | | this.RepClientList.DataBind(); |
| | | UCPager1.AspNetPager.RecordCount = pa.RecordCount; |
| | | } |
| | |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtchanpinxiangmu; |
| | | |
| | | /// <summary> |
| | | /// selquanxin 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selquanxin; |
| | | |
| | | /// <summary> |
| | | /// btn_Submit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | |
| | | .tableStyle div { text-align: left; overflow: visible; line-height: 15px; } |
| | | .tableStyle tr, td, th { padding: 0px; height: auto; } |
| | | </style> |
| | | <script type="text/javascript"> |
| | | Preview = function () { |
| | | OnPrint(); |
| | | try { |
| | | LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); |
| | | if ((LODOP == null) || (typeof (LODOP.VERSION) == "undefined")) return; |
| | | var div_tool = document.getElementById('div_tool'); |
| | | var printparams = div_tool.getAttribute('printparams'); |
| | | |
| | | if (!printparams) { |
| | | // alert("1"); |
| | | // LODOP.SET_PRINT_PAGESIZE(0, 1700, 1200, "A4"); |
| | | } |
| | | else { |
| | | printparams = printparams.toString().split(','); |
| | | LODOP.SET_PRINT_PAGESIZE(parseInt(printparams[0]), parseInt(printparams[1]), parseInt(printparams[2]), printparams[3]); |
| | | } |
| | | |
| | | |
| | | if ($("#div_tool").attr("issideways") == "true") { |
| | | LODOP.ADD_PRINT_TABLE(30, 30, "95%", "90%", $(document.documentElement).html()); |
| | | LODOP.SET_SHOW_MODE("LANDSCAPE_DEFROTATED", 1); |
| | | } else if ($("#div_tool").attr("issideways") == "printinfo") { |
| | | var Oldhtml = ""; |
| | | if (printStyle != "" && printStyle != undefined && printContent !== "") { |
| | | Oldhtml = printStyle + "<body>" + printContent + "</body>"; |
| | | LODOP.ADD_PRINT_HTM(30, 30, "95%", "90%", Oldhtml); |
| | | } |
| | | else { |
| | | $(".warning").remove(); |
| | | //alert($(document.documentElement).html()); |
| | | LODOP.ADD_PRINT_HTM(30, 43, "95%", "90%", $(document.documentElement).html()); |
| | | } |
| | | } else { |
| | | var Oldhtml = ""; |
| | | if (printStyle != "" && printStyle != undefined && printContent !== "") { |
| | | Oldhtml = printStyle + "<body>" + printContent + "</body>"; |
| | | LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Oldhtml); |
| | | } |
| | | else { |
| | | $(".warning").remove(); |
| | | /*alert($(document.documentElement).html());*/ |
| | | /* LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", $(document.documentElement).html());*/ |
| | | |
| | | // 获取HTML内容 |
| | | var content = $(document.documentElement).html(); |
| | | |
| | | // 将内容按分页标签分割 |
| | | var pages = content.split('<div class="page-break"></div>'); |
| | | // 遍历每一页的内容 |
| | | for (var i = 0; i < pages.length; i++) { |
| | | /* alert(pages[i]);*/ |
| | | if (i > 0) LODOP.NewPage(); // 对于非第一页,添加新页 |
| | | |
| | | // 添加打印内容 |
| | | LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", pages[i]); |
| | | } |
| | | } |
| | | } |
| | | LODOP.PREVIEW(); |
| | | |
| | | } catch (e) { |
| | | //alertMsg('异常信息:' + e.message); |
| | | } |
| | | OnPrintOver(); |
| | | } |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0" height="0"> |
| | | <embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0" pluginspage="/Pages/common/install_lodop32.exe"></embed> |
| | | </object> |
| | | <div id='div_tool' issideways="true" printparams='1,2100,2970, "A4"'> |
| | | <div id='div_tool' issideways="printinfo" printparams='1,2100,2970, "A4"'> |
| | | </div> |
| | | <form id="form1" class="form2" runat="server"> |
| | | <table style="width: 590px; margin-top: 30px; margin: 0 auto;"> |