private void GetOtherOrg(ref int deptCount, ref int staffCount, ref string msg) { deptCount = 0; staffCount = 0; msg = ""; if (string.IsNullOrEmpty(hidCondition.Value)) { return; } string[] deviceIds = hidCondition.Value.Split(','); HR_CHECKWORKDEVICE con = new HR_CHECKWORKDEVICE(); con.In(HR_CHECKWORKDEVICE.Attribute.DeviceID, deviceIds); List <HR_CHECKWORKDEVICE> devList = BLLTable <HR_CHECKWORKDEVICE> .Factory(conn).Select(new HR_CHECKWORKDEVICE(), con); if (devList.Count < 1) { return; } List <DeviceOrg> orgList = new List <DeviceOrg>(); msg += "<div class='maskmsgtool' style='width:500px; height:20px;'><a onclick=\"$('.main').unmask();\">关闭</a></div>"; msg += "<div class='msgtblist' style='width:500px;'>"; msg += "<table style='width:100%;'>"; msg += " <thead>"; msg += " <tr>"; msg += " <td colspan='4' style='width:500px;'>详细信息</td>"; msg += " </tr>"; msg += " <tr>"; msg += " <td style='width:60px;'>设备ID</td>"; msg += " <td style='width:180px;'>设备名</td>"; msg += " <td style='width:160px;'>部门表(新增/总数)</td>"; msg += " <td style='width:160px;'>员工表(新增/总数)</td>"; msg += " </tr>"; msg += " </thead>"; msg += " <tbody>"; foreach (HR_CHECKWORKDEVICE dev in devList) { msg += " <tr>"; msg += " <td class='first''>" + dev.DeviceID + "</td>"; msg += " <td>" + dev.DeviceName + "</td>"; DeviceOrg devOrg = null; GetOtherOrg(dev, ref devOrg); orgList.Add(devOrg); msg += " <td>" + devOrg.deptMsg + "</td>"; msg += " <td>" + devOrg.staffMsg + "</td>"; msg += " </tr>"; } msg += " </tbody>"; RemoveRepeatAndInsertAioByName(orgList, ref deptCount, ref staffCount); msg += " <tbody>"; msg += " <tr style='background:#eee;'>"; msg += " <td colspan='2' style='text-align:right;'>根据部门/员工名称去重后获取记录数:</td>"; msg += " <td>" + staffCount + "</td>"; msg += " <td>" + deptCount + "</td>"; msg += " </tr>"; msg += " </tbody>"; msg += "</table>"; msg += "</div>"; }
private void GetOtherOrg(HR_CHECKWORKDEVICE dev, ref DeviceOrg devOrg) { devOrg = new DeviceOrg(dev); if (!devOrg.enable) { return; } }
private void GetOtherOrg(HR_CHECKWORKDEVICE dev, ref DeviceOrg devOrg) { devOrg = new DeviceOrg(dev); if (!devOrg.enable) return; }