| | |
| | | 73d59a519d75fba02045f94dbe09df43d113619d |
| | | 148a124d533dab517de60d4081ee6b355ffb0769 |
| | |
| | | D:\Company\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.csproj.CopyComplete |
| | | D:\Company\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.dll |
| | | D:\Company\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.pdb |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\bin\Debug\App_Code.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\bin\Debug\App_Code.pdb |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\bin\Debug\Aspose.Cells.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\bin\Debug\Dao.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\bin\Debug\Ionic.Zip.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.csproj.AssemblyReference.cache |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.csproj.CoreCompileInputs.cache |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.csproj.CopyComplete |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.pdb |
| | |
| | | /// <param name="agent">业务员</param> |
| | | /// <returns></returns> |
| | | //public List<GwClient> LoadInfoList(out int recordCount, int pageIndex, int pageSizestring, string clientID, string clientName, string telphone, string agent) |
| | | public List<GwClient> LoadInfoList(out int recordCount, int pageIndex, int pageSizestring, string clientID, string clientName, string telphone, string agent, string company, string salesman, string productId) |
| | | public List<GwClient> LoadInfoList(out int recordCount, int pageIndex, int pageSizestring, string clientID, string clientName, string telphone, string agent, string company, string salesman, string productId, string permissionsSQL ) |
| | | { |
| | | |
| | | List<GwClient> list = new List<GwClient>(); |
| | |
| | | { |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | stringBuilder.Append("from GW_CLIENT where 1=1"); |
| | | OracleParameter[] oracleParameterArray = new OracleParameter[4]; |
| | | OracleParameter[] oracleParameterArray = new OracleParameter[6]; |
| | | if (clientID != null && clientID != "") |
| | | { |
| | | oracleParameterArray[0] = new OracleParameter(":ClientID", (OracleDbType)126); |
| | |
| | | } |
| | | if (salesman != null && salesman != "") |
| | | { |
| | | oracleParameterArray[4] = new OracleParameter(":Salesman", (OracleDbType)112); |
| | | oracleParameterArray[4] = new OracleParameter(":Salesman", (OracleDbType)126); |
| | | ((DbParameter)oracleParameterArray[4]).Value = (object)( salesman ); |
| | | stringBuilder.Append(" and Salesman = :Salesman"); |
| | | } |
| | |
| | | { |
| | | stringBuilder.Append(" and CLIENT_ID IN ( SELECT distinct CLIENT_ID FROM GW_SP WHERE PRODUCT_ID = '" + productId + "' )"); |
| | | } |
| | | |
| | | //客户权限SQL脚本 |
| | | stringBuilder.Append(permissionsSQL); |
| | | |
| | | stringBuilder.Append(" order by CREATE_TIME DESC,CLIENT_ID DESC"); |
| | | using (OracleDataReader reader = OracleHelper.ExecuteReader("select count(*) as count " + stringBuilder.ToString(), OracleHelper.Connection, oracleParameterArray)) |
| | |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * 查询统计功能 |
| | | */ |
| | | public List<GwClient> LoadInfoList(string clientID, string clientName, string company, string agent) |
| | | { |
| | | |
| | |
| | | public bool UpdateClientAmount(int AddBalance, int payAmount, string clientId ) |
| | | { |
| | | return OracleHelper.ExecuteSql("UPDATE GW_CLIENT SET BALANCE=(BALANCE + :BALANCE), TOP_UP_AMOUNT_TOTAL=(TOP_UP_AMOUNT_TOTAL + :TOP_UP_AMOUNT_TOTAL) WHERE CLIENT_ID=:CLIENT_ID", OracleHelper.Connection, new OracleParameter(":BALANCE", (object)AddBalance), new OracleParameter(":TOP_UP_AMOUNT_TOTAL", (object)payAmount), new OracleParameter(":CLIENT_ID", (object)clientId)) > 0; |
| | | } |
| | | |
| | | public bool UpdateClientProduct(string clientId, string productId) |
| | | { |
| | | List<KeyValuePair<string, OracleParameter[]>> list = new List<KeyValuePair<string, OracleParameter[]>>(); |
| | | if (string.IsNullOrEmpty(productId) ) |
| | | { |
| | | string key = "UPDATE GW_CLIENT_PRODUCT SET PRODUCT_ID=:PRODUCT_ID WHERE CLIENT_ID=:CLIENT_ID"; |
| | | OracleParameter[] oracleParameterArray = new OracleParameter[2] |
| | | { |
| | | new OracleParameter(":PRODUCT_ID", (object) productId), |
| | | new OracleParameter(":CLIENT_ID", (object) clientId) |
| | | }; |
| | | list.Add(new KeyValuePair<string, OracleParameter[]>(key, oracleParameterArray)); |
| | | } |
| | | OracleHelper.ExecuteSqlTran(list, OracleHelper.Connection); |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 函数描述: 根据系统用户获取有权限客户 |
| | | * userId: 用户ID |
| | | * userType: 用户类型:1-管理员;2-业务员--全员;3-业务主管;4-业务总监;5-客服人员;6-财务人员;99-其他 |
| | | * return: SQL字符串 |
| | | * */ |
| | | public string GetClientPermissions(int userId, int userType, string alias) |
| | | { |
| | | if (!string.IsNullOrEmpty(alias)) |
| | | { |
| | | alias += "."; |
| | | } |
| | | |
| | | string sqlStr = ""; |
| | | //业务员和其他 |
| | | if(userType==2 || userType == 99) |
| | | { |
| | | sqlStr += " AND " + alias + "CLIENT_ID IN (SELECT CLIENT_ID FROM GW_CLIENT WHERE IS_ENABLE=1 AND (SALESMAN='" + userId + "' ) ) "; |
| | | } |
| | | //业务主管 |
| | | else if (userType == 3) |
| | | { |
| | | sqlStr += " AND " + alias + "CLIENT_ID IN (SELECT CLIENT_ID FROM GW_CLIENT WHERE IS_ENABLE=1 AND (SALESMAN='" + userId + "' or CUSTOMER_MANAGER='" + userId + "' ) ) "; |
| | | } |
| | | else |
| | | { |
| | | //sqlStr += " AND CLIENT_ID IN (SELECT CLIENT_ID FROM GW_CLIENT WHERE IS_ENABLE=1 ) "; |
| | | } |
| | | |
| | | return sqlStr ; |
| | | } |
| | | |
| | | /** |
| | | * 函数描述: 根据系统用户获取有权限客户账号 |
| | | * userId: 用户ID |
| | | * userType: 用户类型:1-管理员;2-业务员--全员;3-业务主管;4-业务总监;5-客服人员;6-财务人员;99-其他 |
| | | * return: SQL字符串 |
| | | * */ |
| | | public string GetSpPermissions(int userId, int userType, string alias) |
| | | { |
| | | if (!string.IsNullOrEmpty(alias)) |
| | | { |
| | | alias += "."; |
| | | } |
| | | |
| | | string sqlStr = ""; |
| | | //业务员和其他 |
| | | if (userType == 2 || userType == 99) |
| | | { |
| | | sqlStr += " AND " + alias + "SP_ID IN (SELECT SP_ID from GW_SP where DEL_FLAG = 0 and CLIENT_ID IN (SELECT CLIENT_ID FROM GW_CLIENT WHERE IS_ENABLE=1 AND (SALESMAN='" + userId + "' ) ) ) "; |
| | | } |
| | | //业务主管 |
| | | else if (userType == 3) |
| | | { |
| | | sqlStr += " AND " + alias + "SP_ID IN (SELECT SP_ID from GW_SP where DEL_FLAG = 0 and CLIENT_ID IN (SELECT CLIENT_ID FROM GW_CLIENT WHERE IS_ENABLE=1 AND (SALESMAN='" + userId + "' or CUSTOMER_MANAGER='" + userId + "' ) ) ) "; |
| | | } |
| | | else |
| | | { |
| | | //sqlStr += " AND CLIENT_ID IN (SELECT CLIENT_ID FROM GW_CLIENT WHERE IS_ENABLE=1 ) "; |
| | | } |
| | | |
| | | return sqlStr; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | public class GwDmDao : IDisposable |
| | | { |
| | | public List<GwDm> LoadInfoList(string ApID, string OpID, string spID, string DestnationId, string sDate, out int recordcount, int pageSize, int PageIndex) |
| | | public List<GwDm> LoadInfoList(string ApID, string OpID, string spID, string DestnationId, string sDate, string permissionsSQL, out int recordcount, int pageSize, int PageIndex) |
| | | { |
| | | List<GwDm> list1 = new List<GwDm>(); |
| | | recordcount = 0; |
| | |
| | | list2.Add(oracleParameter); |
| | | stringBuilder.Append(" and SP_ID=:SP_ID "); |
| | | } |
| | | |
| | | //客户权限SQL脚本 |
| | | stringBuilder.Append(permissionsSQL); |
| | | |
| | | using (OracleDataReader reader = OracleHelper.ExecuteReader(" select count(*) as count " + stringBuilder.ToString(), OracleHelper.Connection, list2.ToArray())) |
| | | { |
| | | while (((DbDataReader) reader).Read()) |
| | |
| | | { |
| | | } |
| | | |
| | | public List<GwDm> LoadInfoList(string clientID, string spID, string destnationId, string sDate, string beginTime, string endTime, out int recordcount, int pageSize, int pageIndex) |
| | | public List<GwDm> LoadInfoList(string clientID, string spID, string destnationId, string sDate, string beginTime, string endTime, string permissionsSQL, out int recordcount, int pageSize, int pageIndex) |
| | | { |
| | | List<GwDm> list = new List<GwDm>(); |
| | | recordcount = 0; |
| | |
| | | ((DbParameter) oracleParameterArray[0]).Value = (object) destnationId; |
| | | stringBuilder.Append(" and MOBILE=:DestnationId"); |
| | | } |
| | | |
| | | //客户权限SQL脚本 |
| | | stringBuilder.Append(permissionsSQL); |
| | | |
| | | using (OracleDataReader reader = OracleHelper.ExecuteReader("select count(*) as count " + stringBuilder.ToString(), OracleHelper.Connection, oracleParameterArray)) |
| | | { |
| | | while (((DbDataReader) reader).Read()) |
| | |
| | | |
| | | |
| | | //flag: 0-待审核订单(已提交、审核中);1-已完成订单(审核通过、审核不通过、取消) |
| | | public List<GwOrder> LoadInfoList(string spId, string clientId, string clientName, int flag, DateTime startDate, DateTime endDate, int pageSize, int PageIndex, out int recordcount) |
| | | public List<GwOrder> LoadInfoList(string spId, string clientId, string clientName, int flag, DateTime startDate, DateTime endDate, int pageSize, int PageIndex, string permissionsSQL, out int recordcount) |
| | | { |
| | | |
| | | List<GwOrder> list = new List<GwOrder>(); |
| | |
| | | { |
| | | stringBuilder.Append(" and GWC.CLIENT_NAME like '%" + clientName + "%'"); |
| | | } |
| | | //客户权限SQL脚本 |
| | | stringBuilder.Append(permissionsSQL); |
| | | |
| | | stringBuilder.Append(" ) T "); |
| | | |
| | | OracleParameter[] parameterArray = new OracleParameter[] { new OracleParameter(":START_TIME", startDate), new OracleParameter(":END_TIME", endDate) }; |
| | |
| | | return OracleHelper.ExecuteSql("UPDATE GW_PRODUCT SET IS_ENABLE=:IS_ENABLE where ID=:ID", OracleHelper.Connection, new OracleParameter(":IS_ENABLE", (object)isEnable), new OracleParameter(":ID", (object)id)) > 0; |
| | | } |
| | | |
| | | //更新分配个性产品客户 |
| | | public bool UpdateClientIds(string clientIds, string id) |
| | | { |
| | | if (string.IsNullOrEmpty(id)) |
| | | return false; |
| | | return OracleHelper.ExecuteSql("UPDATE GW_PRODUCT SET CLIENT_IDS=:CLIENT_IDS where ID=:ID", OracleHelper.Connection, new OracleParameter(":CLIENT_IDS", (object)clientIds), new OracleParameter(":ID", (object)id)) > 0; |
| | | } |
| | | |
| | | //更新关联的产品路径PATH |
| | | public bool UpdatePath(string id, string path) |
| | | { |
| | |
| | | o.CtExtParams = oracleReaderWrapper.GetString("CT_EXT_PARAMS", ""); |
| | | o.Price = oracleReaderWrapper.GetInt("PRICE", 0); |
| | | o.GivingNum = oracleReaderWrapper.GetInt("GIVING_NUM", 0); |
| | | o.ClientIds = oracleReaderWrapper.GetString("CLIENT_IDS", ""); |
| | | o.Remark = oracleReaderWrapper.GetString("REMARK", ""); |
| | | o.CreateTime = oracleReaderWrapper.GetDateTime("CREATE_TIME"); |
| | | o.Creator = oracleReaderWrapper.GetString("CREATOR", ""); |
| | |
| | | /// <param name="pageSize"></param> |
| | | /// <param name="pageIndex"></param> |
| | | /// <returns></returns> |
| | | public List<GwSm> LoadInfoList(string apMID, string opName, string clientID, string spID, string destnationId, string sDate, string beginTime, string endTime, string content, string opstat, int TStatus, out int recordcount, int pageSize, int pageIndex,string ReSend=null) |
| | | public List<GwSm> LoadInfoList(string apMID, string opName, string clientID, string spID, string destnationId, string sDate, string beginTime, string endTime, string content, string opstat, int TStatus, string permissionsSQL, out int recordcount, int pageSize, int pageIndex,string ReSend=null) |
| | | { |
| | | List<GwSm> list1 = new List<GwSm>(); |
| | | recordcount = 0; |
| | |
| | | list2.Add(oracleParameter2); |
| | | ((DbParameter)oracleParameter2).Value = (object)DateTime.Parse(sDate + " " + endTime); |
| | | stringBuilder.Append(" and sm.AP_SUBMIT_TIME BETWEEN :BEGIN_TIME AND :END_TIME"); |
| | | |
| | | //客户权限SQL脚本 |
| | | stringBuilder.Append(permissionsSQL); |
| | | |
| | | using (OracleDataReader reader = OracleHelper.ExecuteReader("select count(*) as count " + stringBuilder.ToString(), OracleHelper.Connection, list2.ToArray())) |
| | | { |
| | | if (((DbDataReader)reader).Read()) |
| | |
| | | return list1; |
| | | } |
| | | |
| | | public List<GwSp> LoadInfoList(string spId, string apId, string clientId, string clientName, int routerType, string opID, int chargeType, int pageIndex, int pageSize, string resendStatus, out int recordCount, string productId ) |
| | | public List<GwSp> LoadInfoList(string spId, string apId, string clientId, string clientName, int routerType, string opID, int chargeType, int pageIndex, int pageSize |
| | | , string resendStatus, string productId, string permissionsSQL, out int recordCount ) |
| | | { |
| | | List<GwSp> list1 = new List<GwSp>(); |
| | | recordCount = 0; |
| | |
| | | list2.Add(new OracleParameter(":ProductId", (object)productId)); |
| | | stringBuilder.Append(" and Product_Id=:ProductId"); |
| | | } |
| | | |
| | | //客户权限SQL脚本 |
| | | stringBuilder.Append(permissionsSQL); |
| | | |
| | | stringBuilder.Append(" order by ID DESC"); |
| | | using (OracleDataReader reader = OracleHelper.ExecuteReader("select count(*) as count " + stringBuilder.ToString(), OracleHelper.Connection, list2.ToArray())) |
| | | { |
| | |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Data.Common; |
| | | using System.Text; |
| | | |
| | | namespace Dao |
| | | { |
| | |
| | | return OracleHelper.Execute("SELECT * FROM\r\n(\r\nselect STATIS_TIME,\r\nNVL(SUM(AP_STATUS0),0) as AP_STATUS0,\r\nNVL(SUM(AP_STATUS1),0) as AP_STATUS1,\r\nNVL(SUM(AP_STATUS2),0) as AP_STATUS2,\r\nNVL(SUM(AP_STATUS3),0) as AP_STATUS3,\r\nNVL(SUM(AP_STATUS4),0) as AP_STATUS4,\r\nNVL(SUM(AP_STATUS5),0) as AP_STATUS5\r\n from GW_SM_STATIS_V3 where CLIENT_ID=:CLIENT_ID GROUP BY STATIS_TIME ORDER BY STATIS_TIME DESC) WHERE ROWNUM < 30 ORDER BY STATIS_TIME ASC", OracleHelper.Connection, new OracleParameter(":CLIENT_ID", (object) clientID)); |
| | | } |
| | | |
| | | public List<GwStatisV3Item> Query(DateTime startTime, DateTime endTime, string clientID, string spID, string apID, string opID, string timeExpression, StatisOption so) |
| | | public List<GwStatisV3Item> Query(DateTime startTime, DateTime endTime, string clientID, string spID, string apID, string opID, string timeExpression, string permissionsSQL, StatisOption so) |
| | | { |
| | | List<GwStatisV3Item> list = new List<GwStatisV3Item>(); |
| | | using (OracleDataReader reader = OracleHelper.ExecuteReader(string.Format("SELECT TO_CHAR(STATIS_TIME,'{0}') AS TITLE {1}{2}{3}{4},\r\nSUM(AP_STATUS0) AP_STATUS0,\r\nSUM(AP_STATUS1) AP_STATUS1,\r\nSUM(AP_STATUS2) AP_STATUS2,\r\nSUM(AP_STATUS3) AP_STATUS3,\r\nSUM(AP_STATUS4) AP_STATUS4,\r\nSUM(AP_STATUS5) AP_STATUS5,\r\nSUM(OP_STATUS0) OP_STATUS0,\r\nSUM(OP_STATUS1) OP_STATUS1,\r\nSUM(OP_STATUS2) OP_STATUS2,\r\nSUM(OP_STATUS3) OP_STATUS3,\r\nSUM(OP_STATUS4) OP_STATUS4,\r\nSUM(OP_STATUS5) OP_STATUS5 \r\nFROM GW_SM_STATIS_V3 WHERE (SP_ID=:SP_ID OR :SP_ID IS NULL) AND (CLIENT_ID=:CLIENT_ID OR :CLIENT_ID IS NULL) AND (AP_ID=:AP_ID OR :AP_ID IS NULL) AND (OP_ID=:OP_ID OR :OP_ID IS NULL) AND STATIS_TIME BETWEEN :START_TIME AND :END_TIME GROUP BY TO_CHAR(STATIS_TIME,'{0}') {1}{2}{3}{4} ORDER BY 1 ASC", (object) timeExpression, (so & StatisOption.APID) == StatisOption.APID ? (object) ",AP_ID" : (object) "", (so & StatisOption.OPID) == StatisOption.OPID ? (object) ",OP_ID" : (object) "", (so & StatisOption.ClientID) == StatisOption.ClientID ? (object) ",CLIENT_ID" : (object) "", (so & StatisOption.SpID) == StatisOption.SpID ? (object) ",SP_ID" : (object) ""), OracleHelper.Connection, new OracleParameter(":START_TIME", (object) startTime), new OracleParameter(":END_TIME", (object) endTime), new OracleParameter(":SP_ID", (object) spID), new OracleParameter(":CLIENT_ID", (object) clientID), new OracleParameter(":AP_ID", (object) apID), new OracleParameter(":OP_ID", (object) opID))) |
| | | { |
| | | //using (OracleDataReader reader = OracleHelper.ExecuteReader(string.Format("SELECT TO_CHAR(STATIS_TIME,'{0}') AS TITLE {1}{2}{3}{4},\r\nSUM(AP_STATUS0) AP_STATUS0,\r\nSUM(AP_STATUS1) AP_STATUS1,\r\nSUM(AP_STATUS2) AP_STATUS2,\r\nSUM(AP_STATUS3) AP_STATUS3,\r\nSUM(AP_STATUS4) AP_STATUS4,\r\nSUM(AP_STATUS5) AP_STATUS5,\r\nSUM(OP_STATUS0) OP_STATUS0,\r\nSUM(OP_STATUS1) OP_STATUS1,\r\nSUM(OP_STATUS2) OP_STATUS2,\r\nSUM(OP_STATUS3) OP_STATUS3,\r\nSUM(OP_STATUS4) OP_STATUS4,\r\nSUM(OP_STATUS5) OP_STATUS5 \r\nFROM GW_SM_STATIS_V3 WHERE (SP_ID=:SP_ID OR :SP_ID IS NULL) AND (CLIENT_ID=:CLIENT_ID OR :CLIENT_ID IS NULL) AND (AP_ID=:AP_ID OR :AP_ID IS NULL) AND (OP_ID=:OP_ID OR :OP_ID IS NULL) AND STATIS_TIME BETWEEN :START_TIME AND :END_TIME GROUP BY TO_CHAR(STATIS_TIME,'{0}') {1}{2}{3}{4} ORDER BY 1 ASC", (object) timeExpression, (so & StatisOption.APID) == StatisOption.APID ? (object) ",AP_ID" : (object) "", (so & StatisOption.OPID) == StatisOption.OPID ? (object) ",OP_ID" : (object) "", (so & StatisOption.ClientID) == StatisOption.ClientID ? (object) ",CLIENT_ID" : (object) "", (so & StatisOption.SpID) == StatisOption.SpID ? (object) ",SP_ID" : (object) ""), OracleHelper.Connection, new OracleParameter(":START_TIME", (object) startTime), new OracleParameter(":END_TIME", (object) endTime), new OracleParameter(":SP_ID", (object) spID), new OracleParameter(":CLIENT_ID", (object) clientID), new OracleParameter(":AP_ID", (object) apID), new OracleParameter(":OP_ID", (object) opID))) |
| | | |
| | | |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | stringBuilder.Append(string.Format("SELECT TO_CHAR(STATIS_TIME,'{0}') AS TITLE {1}{2}{3}{4},\r\nSUM(AP_STATUS0) AP_STATUS0,\r\nSUM(AP_STATUS1) AP_STATUS1,\r\nSUM(AP_STATUS2) AP_STATUS2,\r\nSUM(AP_STATUS3) AP_STATUS3,\r\nSUM(AP_STATUS4) AP_STATUS4,\r\nSUM(AP_STATUS5) AP_STATUS5,\r\nSUM(OP_STATUS0) OP_STATUS0,\r\nSUM(OP_STATUS1) OP_STATUS1,\r\nSUM(OP_STATUS2) OP_STATUS2,\r\nSUM(OP_STATUS3) OP_STATUS3,\r\nSUM(OP_STATUS4) OP_STATUS4,\r\nSUM(OP_STATUS5) OP_STATUS5 \r\nFROM GW_SM_STATIS_V3 WHERE (SP_ID=:SP_ID OR :SP_ID IS NULL) AND (CLIENT_ID=:CLIENT_ID OR :CLIENT_ID IS NULL) AND (AP_ID=:AP_ID OR :AP_ID IS NULL) AND (OP_ID=:OP_ID OR :OP_ID IS NULL) AND STATIS_TIME BETWEEN :START_TIME AND :END_TIME GROUP BY TO_CHAR(STATIS_TIME,'{0}') {1}{2}{3}{4} ", (object)timeExpression, (so & StatisOption.APID) == StatisOption.APID ? (object)",AP_ID" : (object)"", (so & StatisOption.OPID) == StatisOption.OPID ? (object)",OP_ID" : (object)"", (so & StatisOption.ClientID) == StatisOption.ClientID ? (object)",CLIENT_ID" : (object)"", (so & StatisOption.SpID) == StatisOption.SpID ? (object)",SP_ID" : (object)"") ); |
| | | |
| | | //客户权限SQL脚本 |
| | | stringBuilder.Append(permissionsSQL); |
| | | |
| | | stringBuilder.Append(" ORDER BY 1 ASC "); |
| | | |
| | | using (OracleDataReader reader = OracleHelper.ExecuteReader(stringBuilder.ToString(), OracleHelper.Connection, new OracleParameter(":START_TIME", (object)startTime), new OracleParameter(":END_TIME", (object)endTime), new OracleParameter(":SP_ID", (object)spID), new OracleParameter(":CLIENT_ID", (object)clientID), new OracleParameter(":AP_ID", (object)apID), new OracleParameter(":OP_ID", (object)opID))) |
| | | { |
| | | GwStatisV3Item gwStatisV3Item1 = new GwStatisV3Item(); |
| | | gwStatisV3Item1.Title = "合计"; |
| | | while (reader != null && ((DbDataReader) reader).Read()) |
| | |
| | | |
| | | public int GivingNum { get; set; } |
| | | |
| | | public string ClientIds { get; set; } |
| | | |
| | | public string Remark { get; set; } |
| | | |
| | | public DateTime CreateTime { get; set; } |
| | |
| | | c546f08e5171d2ea11491af4c442ff223c9bb58c |
| | | 27f9b4fb5d36be9c155fb6557fe17e62c41ec4da |
| | |
| | | D:\Company\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.csproj.CopyComplete |
| | | D:\Company\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.dll |
| | | D:\Company\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.pdb |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\bin\Debug\UMCLib.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\bin\Debug\UMCLib.pdb |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\bin\Debug\Newtonsoft.Json.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.csproj.AssemblyReference.cache |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.csproj.CoreCompileInputs.cache |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.csproj.CopyComplete |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.pdb |
| | |
| | | WebTool webTool = new WebTool(); |
| | | Dictionary<string, string> dictionary = new Dictionary<string, string>(); |
| | | dictionary["AP消息ID"] = "AP_MID"; |
| | | dictionary["代理商"] = "CLIENT_ID"; |
| | | dictionary["客户ID"] = "CLIENT_ID"; |
| | | dictionary["账号"] = "SP_ID"; |
| | | dictionary["接入点ID"] = "AP_ID"; |
| | | dictionary["通道名"] = "OP_NAME"; |
| | |
| | | <%@ WebHandler Language="C#" Class="GwClientHandler" %> |
| | | using System; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using Dao; |
| | | using Model; |
| | |
| | | using System.Text; |
| | | using System.Text.RegularExpressions; |
| | | using System.IO; |
| | | using Newtonsoft.Json; |
| | | |
| | | |
| | | |
| | |
| | | private UserDao _SysUserDao = new UserDao(); |
| | | private List<SysUser> _SysUserList; |
| | | |
| | | private int _userId = -1; |
| | | private int _userType = -1; |
| | | private string _account = ""; |
| | | |
| | | public override JsonPageResult ProcessRequestInternal(PageContext<Model.SysUser> context) |
| | | { |
| | | string action = context.GetString("action"); |
| | | |
| | | _userId = context.SessionObject.UserID; |
| | | _userType = context.SessionObject.UserType; |
| | | _account = context.SessionObject.Account; |
| | | |
| | | switch (action) |
| | | { |
| | |
| | | |
| | | case "updateBlack": |
| | | return UpdateBlack(context); |
| | | //批量分配客户的个性产品 |
| | | case "batchUpdateClientProduct": |
| | | return BatchUpdateClientProduct(context); |
| | | |
| | | default: |
| | | throw new Exception("Invalid Action=" + action); |
| | |
| | | int pageSize = context.GetInt("pageSize", 20); |
| | | string serverIp = ConfigurationManager.AppSettings["serverIp"]; |
| | | string clientPort = ConfigurationManager.AppSettings["clientPort"]; |
| | | |
| | | string str = ""; |
| | | using (GwClientDao dao = new GwClientDao()) |
| | | { |
| | | var list = dao.LoadInfoList(out recordCount, pageIndex, pageSize, ClientID, ClientName, Telephone, Agent, Company, Salesman, ProductId); |
| | | string permissionsSQL = dao.GetClientPermissions(_userId, _userType, null); |
| | | var list = dao.LoadInfoList(out recordCount, pageIndex, pageSize, ClientID, ClientName, Telephone, Agent, Company, Salesman, ProductId, permissionsSQL); |
| | | |
| | | if (list != null && list.Count > 0) |
| | | { |
| | |
| | | //edit:yangzh by 20220511 |
| | | //str += @"<tr ><td>" + item.ClientID + "</td><td>" + item.Company + "</td><td>" + item.ClientName + "</td><td>" + item.Telephone + "</td><td>" + item.Top_up_Amount_Total + "元</td><td>" + item.Agent + "</td><td>" + Certification_StatusResult + "</td>"; |
| | | //str += @"<tr ><td>" + item.ClientID + "</td><td>" + item.Company + "</td><td>" + item.ClientName + "</td><td>" + item.Telephone + "</td><td>" + item.Balance/1000 + "元</td><td>" + item.Top_up_Amount_Total/1000 + "元</td><td>" + item.Agent + "</td><td>" + Certification_StatusResult + "</td>"; |
| | | str += @"<tr ><td>" + item.ClientID + "</td><td>" + item.Company + "</td><td>" + item.ClientName + "</td><td>" + item.Telephone + "</td><td>" + item.Balance/1000 + "元</td><td>" + item.Top_up_Amount_Total/1000 + "元</td><td>" + SysUserName(string.IsNullOrEmpty(item.Salesman)? 0: int.Parse(item.Salesman) ) + "</td><td>" + Certification_StatusResult + "</td>"; |
| | | str += @"<tr ><td rowspan='1' ><input type='checkbox' name='checkbox' value='" + item.ClientID + "'/></td><td>" + item.ClientID + "</td><td>" + item.Company + "</td><td>" + item.ClientName + "</td><td>" + item.Telephone + "</td><td>" + item.Balance/1000 + "元</td><td>" + item.Top_up_Amount_Total/1000 + "元</td><td>" + SysUserName(string.IsNullOrEmpty(item.Salesman)? 0: int.Parse(item.Salesman) ) + "</td><td>" + Certification_StatusResult + "</td>"; |
| | | |
| | | |
| | | str += @"<td>"; |
| | |
| | | } |
| | | else |
| | | { |
| | | str += @"<tr><td colspan=""9"">暂无信息</td></tr>"; |
| | | str += @"<tr><td colspan=""10"">暂无信息</td></tr>"; |
| | | } |
| | | |
| | | } |
| | |
| | | client.Company = company; |
| | | //client.Password = password; |
| | | client.Password = savePassword; |
| | | |
| | | |
| | | client.ClientName = clientName; |
| | | client.Address = address; |
| | | client.Remark = remark; |
| | | client.Telephone = telephone; |
| | | client.Agent = agent; |
| | | |
| | | |
| | | client.CustomerManager = customerManager; |
| | | client.Salesman = salesman; |
| | | client.SupportStaff = supportStaff; |
| | |
| | | return new JsonPageResult(true, "创建账户成功!"); |
| | | } |
| | | |
| | | //分配客户的个性产品 |
| | | private JsonPageResult BatchUpdateClientProduct(PageContext<SysUser> context) |
| | | { |
| | | string productId = context.GetString("productId"); |
| | | string idArray = context.GetString("idArray"); |
| | | if (string.IsNullOrEmpty(productId)) |
| | | { |
| | | |
| | | throw new ArgumentException("个性产品不能为空,请选择!"); |
| | | } |
| | | |
| | | Model.GwProduct gwProduct = new GwProductDao().Get(productId); |
| | | if (gwProduct == null) |
| | | { |
| | | throw new ArgumentException("指定的个性产品不存在,请重新选择!"); |
| | | } |
| | | string clientIds = gwProduct.ClientIds; |
| | | |
| | | List<string> tmpList = new List<string>(); |
| | | if(!string.IsNullOrEmpty(clientIds)) |
| | | { //字符串转数组,再数组合并 |
| | | tmpList.AddRange( clientIds.Split(',') ); |
| | | } |
| | | //数组合并 |
| | | tmpList.AddRange( JsonConvert.DeserializeObject<string[]>(context.GetString("idArray")) ); |
| | | |
| | | //数组去重 |
| | | string[] tmpArray = DelRepeatData(tmpList.ToArray() ); |
| | | clientIds = string.Join(",", tmpArray) ; |
| | | |
| | | if (!string.IsNullOrEmpty(clientIds)) |
| | | { |
| | | new GwProductDao().UpdateClientIds(clientIds, productId); |
| | | } |
| | | |
| | | |
| | | return new JsonPageResult(true, (object)"批量分配客户个性产品成功!"); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 移除数组中重复数据 |
| | | /// </summary> |
| | | /// <param name="array">需要除重的数组</param> |
| | | /// <returns>不重复数组</returns> |
| | | public static string[] DelRepeatData(string[] array) |
| | | { |
| | | return array.GroupBy(p => p).Select(p => p.Key).ToArray(); |
| | | } |
| | | |
| | | |
| | | |
| | | //获取管理端账户列表 |
| | |
| | | $("#clientDialog #mmsStatusReport").val(""); |
| | | $("#clientDialog #customerManager").val(""); |
| | | $("#clientDialog #salesman").val(""); |
| | | $("#clientDialog #supportStaff").val(r.Message.SupportStaff); |
| | | $("#clientDialog #financialStaff").val(r.Message.FinancialStaff); |
| | | $("#clientDialog #supportStaff").val(""); |
| | | $("#clientDialog #financialStaff").val(""); |
| | | $("#clientDialog #remark").val(""); |
| | | $("#clientDialog input[name=permissionData]").iCheck("uncheck"); |
| | | |
| | |
| | | } |
| | | }); |
| | | }) |
| | | |
| | | //全选 |
| | | $("#checkAll").click(function () { |
| | | $("input[name='checkbox']").prop("checked", $(this).is(":checked")); |
| | | }); |
| | | |
| | | //批量分配个性产品 |
| | | $(document).on("click", ".action-modal-setProduct", function () { |
| | | var idArray = []; |
| | | |
| | | $("input[name='checkbox']:checkbox:checked").each(function () { |
| | | var id = $(this).val(); |
| | | idArray.push(id); |
| | | }); |
| | | |
| | | if (idArray.length == 0) { |
| | | mytek.alert("请选择要分配个性产品的客户!", false); |
| | | return; |
| | | } |
| | | |
| | | $("#selected-op-box").text(idArray.join(",")); |
| | | |
| | | $("#setProductDialog").modal("show"); |
| | | }); |
| | | |
| | | //批量分配客户个性产品--确认修改 |
| | | $(document).on("click", ".action-update-setProduct", function () { |
| | | var idArray = []; |
| | | |
| | | $("input[name='checkbox']:checkbox:checked").each(function () { |
| | | var id = $(this).val(); |
| | | idArray.push(id); |
| | | }); |
| | | |
| | | if (idArray.length == 0) { |
| | | mytek.alert("请选择要分配个性产品的客户!", false); |
| | | return; |
| | | } |
| | | |
| | | var productId = $("#productId").val(); |
| | | |
| | | $.ajax({ |
| | | url: "GwClient.ashx", |
| | | method: "POST", |
| | | data: { idArray: $.toJSON(idArray), productId: productId, action: "batchUpdateClientProduct" }, |
| | | success: function (result) { |
| | | mytek.alert(result.Message, result.OK, function () { |
| | | $("#setProductDialog #productId").val(""); |
| | | $("#setProductDialog").modal("hide"); |
| | | loadPageList(); |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | |
| | |
| | | <div class="form-group"> |
| | | <div class="input-group m-b"> |
| | | <input type="button" value="查询" class="btn btn-primary action-query" />  |
| | | <input class="btn btn-success action-modal-create" value="创建客户" type="button" /> |
| | | <input class="btn btn-success action-modal-create" value="创建客户" type="button" />  |
| | | <input class="btn btn-danger action-modal-setProduct" value="批量分配个性产品" type="button" /> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | <table class="table table-striped table-bordered table-hover" id="gwclientTable"> |
| | | <thead> |
| | | <tr class="header"> |
| | | <th> |
| | | <input type='checkbox' name='checkAll' id='checkAll' /> |
| | | </th> |
| | | <th>客户账号 |
| | | </th> |
| | | <th>公司名称</th> |
| | |
| | | <div id="pager"> |
| | | </div> |
| | | |
| | | |
| | | <div class="modal inmodal fade" id="setProductDialog" tabindex="-1" role="dialog" aria-hidden="true"> |
| | | <div class="modal-dialog form-horizontal"> |
| | | <div class="modal-content animated "> |
| | | <div class="modal-header"> |
| | | <h3> |
| | | 批量分配个性产品</h3> |
| | | </span><a class="close" data-dismiss="modal" aria-hidden="true">×</a> <span class="text-muted"> |
| | | 批量分配个性产品将会更新所有选中的账号的客户,<br /> |
| | | 确定分配不能取消,请谨慎操作!<br /> |
| | | </div> |
| | | <div class="modal-body"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | 个性产品 |
| | | </label> |
| | | <div class="col-sm-10"> |
| | | <select name="productId" id="productId" class="form-control"> |
| | | <%=GetPersonalityProductOptions("")%> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="modal-footer"> |
| | | <button class="btn-default btn" data-dismiss="modal" aria-hidden="true"> |
| | | 取消</button> |
| | | <input class="btn btn-primary action-update-setProduct" value="确定修改" type="button" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </asp:Content> |
| | | |
| | |
| | | { |
| | | GwProduct bean = new GwProduct(); |
| | | bean.Classes = 1; |
| | | bean.IsDefault = -1; |
| | | bean.IsEnable = -1; |
| | | this.GwProductList = gwProductDao.getAllList(bean); |
| | | } |
| | |
| | | { |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | if (this.GwProductList.Count == 0) |
| | | return "<option value='0'>无</option>"; |
| | | return "<option value=''>无</option>"; |
| | | stringBuilder.AppendFormat("<option value=\"{0}\" >{1}</option>", (object)"", (object)"无"); |
| | | foreach (GwProduct bean in this.GwProductList) |
| | | { |
| | |
| | | } |
| | | |
| | | |
| | | //获取个性产品信息 |
| | | public string GetPersonalityProductOptions(string productId) |
| | | { |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | if (this.GwProductList.Count == 0) |
| | | return "<option value=''>无</option>"; |
| | | stringBuilder.AppendFormat("<option value=\"{0}\" >{1}</option>", (object)"", (object)"无"); |
| | | foreach (GwProduct bean in this.GwProductList) |
| | | { |
| | | //停用的产品分类不再显示 |
| | | if (bean.IsEnable == 0) |
| | | { |
| | | continue; |
| | | } |
| | | //过滤产品类别 |
| | | if (bean.Classes == 0) |
| | | { |
| | | continue; |
| | | } |
| | | //过滤推广方式 |
| | | if (bean.IsDefault == 1) |
| | | { |
| | | continue; |
| | | } |
| | | |
| | | if (productId.Equals(bean.Id)) |
| | | stringBuilder.AppendFormat("<option value=\"{0}\" selected>{0}-{1}</option>", (object)bean.Id, (object)bean.Name); |
| | | else |
| | | stringBuilder.AppendFormat("<option value=\"{0}\">{0}-{1}</option>", (object)bean.Id, (object)bean.Name); |
| | | } |
| | | return stringBuilder.ToString(); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | public class GwDm : PageHandler<SysUser> |
| | | { |
| | | private int _userId = -1; |
| | | private int _userType = -1; |
| | | private string _account = ""; |
| | | |
| | | public override JsonPageResult ProcessRequestInternal(PageContext<Model.SysUser> context) |
| | | { |
| | | string action = context.GetString("action"); |
| | | _userId = context.SessionObject.UserID; |
| | | _userType = context.SessionObject.UserType; |
| | | _account = context.SessionObject.Account; |
| | | |
| | | switch (action) |
| | | { |
| | |
| | | int recordCount = 0; |
| | | int pageSize = context.GetInt("pageSize", 20); |
| | | int pageIndex = context.GetInt("pageIndex", 1); |
| | | |
| | | //根据系统用户获取有权限客户账号 |
| | | string permissionsSQL = new GwClientDao().GetSpPermissions(_userId, _userType, null); |
| | | |
| | | List<Model.GwDm> list = dao.LoadInfoList(SelectedApID, SelectedOpID, SelectedSpID, SelectedDestnationID, SelectedDate, out recordCount, pageSize, pageIndex); |
| | | List<Model.GwDm> list = dao.LoadInfoList(SelectedApID, SelectedOpID, SelectedSpID, SelectedDestnationID, SelectedDate, permissionsSQL, out recordCount, pageSize, pageIndex); |
| | | |
| | | string str = ""; |
| | | if (list != null && list.Count > 0) |
| | |
| | | private List<GwOpGroup> _GroupList; |
| | | private List<GwProduct> _ProductList; //产品及产品分类 |
| | | //private List<GwProduct> _ProductClassList; //产品分类 |
| | | |
| | | private int _userId = -1; |
| | | private int _userType = -1; |
| | | private string _account = ""; |
| | | |
| | | public override JsonPageResult ProcessRequestInternal(PageContext<SysUser> context) |
| | | { |
| | | string @string = context.GetString("action"); |
| | | _userId = context.SessionObject.UserID; |
| | | _userType = context.SessionObject.UserType; |
| | | _account = context.SessionObject.Account; |
| | | |
| | | switch (@string) |
| | | { |
| | | case "delete": |
| | |
| | | int recordCount = 0; |
| | | int pageSize = context.GetInt("pageSize", 50); |
| | | int pageIndex = context.GetInt("pageIndex", 1); |
| | | |
| | | string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, "GWC"); |
| | | |
| | | List<GwOrder> list = _Dao.LoadInfoList(spId, clientId, clientName, flag, startDate, endDate, pageSize, pageIndex, out recordCount); |
| | | List<GwOrder> list = _Dao.LoadInfoList(spId, clientId, clientName, flag, startDate, endDate, pageSize, pageIndex, permissionsSQL, out recordCount); |
| | | |
| | | string str1 = ""; |
| | | if (list != null && list.Count > 0) |
| | |
| | | int recordCount = 0; |
| | | int pageSize = context.GetInt("pageSize", 50); |
| | | int pageIndex = context.GetInt("pageIndex", 1); |
| | | |
| | | string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, "GWC"); |
| | | |
| | | List<GwOrder> list = _Dao.LoadInfoList(spId, clientId, clientName, flag, startDate, endDate, pageSize, pageIndex, out recordCount); |
| | | List<GwOrder> list = _Dao.LoadInfoList(spId, clientId, clientName, flag, startDate, endDate, pageSize, pageIndex, permissionsSQL, out recordCount); |
| | | |
| | | string str1 = ""; |
| | | if (list != null && list.Count > 0) |
| | |
| | | int recordCount = 0; |
| | | int pageSize = context.GetInt("pageSize", 50); |
| | | int pageIndex = context.GetInt("pageIndex", 1); |
| | | |
| | | string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, "GWC"); |
| | | |
| | | //List<GwOrder> list = _Dao.LoadInfoList(spId, clientId, clientName, flag, Convert.ToDateTime(startDate), Convert.ToDateTime(endDate).AddDays(1.0), pageSize, pageIndex, out recordCount); |
| | | List<GwOrder> list = _Dao.LoadInfoList(spId, clientId, clientName, flag, startDate, endDate.AddDays(1.0), pageSize, pageIndex, out recordCount); |
| | | List<GwOrder> list = _Dao.LoadInfoList(spId, clientId, clientName, flag, startDate, endDate.AddDays(1.0), pageSize, pageIndex, permissionsSQL, out recordCount); |
| | | |
| | | string str1 = ""; |
| | | if (list != null && list.Count > 0) |
| | |
| | | <div class="m-b"> |
| | | <div class="form-group"> |
| | | <div class="input-group m-b"> |
| | | <span class="input-group-addon">代理商客户账户</span> |
| | | <span class="input-group-addon">客户账户</span> |
| | | <input type="text" name="ClientId" id="ClientId" class="form-control col-md-2" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <div class="input-group m-b"> |
| | | <span class="input-group-addon">代理商客户名称</span> |
| | | <span class="input-group-addon">客户名称</span> |
| | | <input type="text" name="ClientName" id="ClientName" class="form-control col-md-2" /> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="m-b"> |
| | | <div class="form-group"> |
| | | <div class="input-group m-b"> |
| | | <span class="input-group-addon">代理商客户账户</span> |
| | | <span class="input-group-addon">客户账户</span> |
| | | <input type="text" name="ClientId" id="ClientId" class="form-control col-md-2" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <div class="input-group m-b"> |
| | | <span class="input-group-addon">代理商客户名称</span> |
| | | <span class="input-group-addon">客户名称</span> |
| | | <input type="text" name="ClientName" id="ClientName" class="form-control col-md-2" /> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | public class GwSm : PageHandler<SysUser> |
| | | { |
| | | private int _userId = -1; |
| | | private int _userType = -1; |
| | | private string _account = ""; |
| | | |
| | | public override JsonPageResult ProcessRequestInternal(PageContext<Model.SysUser> context) |
| | | { |
| | | string action = context.GetString("action"); |
| | | _userId = context.SessionObject.UserID; |
| | | _userType = context.SessionObject.UserType; |
| | | _account = context.SessionObject.Account; |
| | | |
| | | switch (action) |
| | | { |
| | |
| | | int recordCount = 0; |
| | | int pageSize = context.GetInt("pageSize", 20); |
| | | int pageIndex = context.GetInt("pageIndex", 1); |
| | | |
| | | //根据系统用户获取有权限客户账号 |
| | | string permissionsSQL = new GwClientDao().GetSpPermissions(_userId, _userType, "sm"); |
| | | |
| | | List<Model.GwSm> list = dao.LoadInfoList(selectedApMID, selectedOpName, selectedClientID, selectedSpID, selectedDestnationID, selectedDate, selectedBeginTime, selectedEndTime, selectedContent, selectedOpStat, TStatus, out recordCount, pageSize, pageIndex); |
| | | List<Model.GwSm> list = dao.LoadInfoList(selectedApMID, selectedOpName, selectedClientID, selectedSpID, selectedDestnationID, selectedDate, selectedBeginTime, selectedEndTime, selectedContent, selectedOpStat, TStatus, permissionsSQL, out recordCount, pageSize, pageIndex ); |
| | | |
| | | string str = ""; |
| | | |
| | |
| | | int recordCount = 0; |
| | | int pageSize = context.GetInt("pageSize", 20); |
| | | int pageIndex = context.GetInt("pageIndex", 1); |
| | | |
| | | string permissionsSQL = new GwClientDao().GetSpPermissions(_userId, _userType, "sm"); |
| | | |
| | | List<Model.GwSm> list = dao.LoadInfoList(selectedApMID, selectedOpName, selectedClientID, selectedSpID, selectedDestnationID, selectedDate, selectedBeginTime, selectedEndTime, selectedContent, selectedOpStat, TStatus, out recordCount, pageSize, pageIndex, "ReSend"); |
| | | List<Model.GwSm> list = dao.LoadInfoList(selectedApMID, selectedOpName, selectedClientID, selectedSpID, selectedDestnationID, selectedDate, selectedBeginTime, selectedEndTime, selectedContent, selectedOpStat, TStatus, permissionsSQL, out recordCount, pageSize, pageIndex, "ReSend"); |
| | | |
| | | string str = ""; |
| | | |
| | |
| | | </div> |
| | | <div class="form-group"> |
| | | <div class="input-group m-b"> |
| | | <span class="input-group-addon">代理商</span> |
| | | <span class="input-group-addon">客户ID</span> |
| | | <input type="text" class="form-control" name="ClientID" id="ClientID" /> |
| | | </div> |
| | | </div> |
| | |
| | | AP/OP消息MsgID |
| | | </th> |
| | | <th> |
| | | 代理商-短信账号 |
| | | 客户-短信账号 |
| | | </th> |
| | | <th> |
| | | 客户接入协议-发送通道 |
| | |
| | | </div> |
| | | <div class="form-group"> |
| | | <div class="input-group m-b"> |
| | | <span class="input-group-addon">代理商</span> |
| | | <span class="input-group-addon">客户ID</span> |
| | | <input type="text" class="form-control" name="ClientID" id="ClientID" /> |
| | | </div> |
| | | </div> |
| | |
| | | AP/OP消息MsgID |
| | | </th> |
| | | <th> |
| | | 代理商-短信账号 |
| | | 客户-短信账号 |
| | | </th> |
| | | <th> |
| | | 客户接入协议-发送通道 |
| | |
| | | private List<GwStrategy> _StrategyList; |
| | | private List<GwProduct> _ProductList; |
| | | |
| | | private int _userId = -1; |
| | | private int _userType = -1; |
| | | private string _account = ""; |
| | | |
| | | private List<GwOp> OpList |
| | | { |
| | | get |
| | |
| | | public override JsonPageResult ProcessRequestInternal(PageContext<SysUser> context) |
| | | { |
| | | string @string = context.GetString("action"); |
| | | _userId = context.SessionObject.UserID; |
| | | _userType = context.SessionObject.UserType; |
| | | _account = context.SessionObject.Account; |
| | | |
| | | switch (@string) |
| | | { |
| | | case "updateSpStatus": |
| | |
| | | apId = string1; |
| | | //if (string.IsNullOrEmpty(clientId) && !string.IsNullOrEmpty(string4)) |
| | | // clientId = new GwClientDao().GetClientName(string4).ClientID; |
| | | |
| | | string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, null); |
| | | |
| | | //加载账号列表信息 |
| | | List<GwSp> list = gwSpDao.LoadInfoList(string2, apId, clientId, string4, int1, string3, int2, int4, int3, int5.ToString(),out recordCount, productId); |
| | | List<GwSp> list = gwSpDao.LoadInfoList(string2, apId, clientId, string4, int1, string3, int2, int4, int3, int5.ToString(), productId, permissionsSQL, out recordCount); |
| | | string str1 = ""; |
| | | if (list != null && list.Count > 0) |
| | | { |
| | |
| | | public class GwStatisV3 : PageHandler<SysUser> |
| | | { |
| | | private GwStatisV3Dao _Dao = new GwStatisV3Dao(); |
| | | private int _userId = -1; |
| | | private int _userType = -1; |
| | | private string _account = ""; |
| | | |
| | | public override JsonPageResult ProcessRequestInternal(PageContext<Model.SysUser> context) |
| | | { |
| | | string action = context.GetString("action"); |
| | | _userId = context.SessionObject.UserID; |
| | | _userType = context.SessionObject.UserType; |
| | | _account = context.SessionObject.Account; |
| | | |
| | | switch (action) |
| | | { |
| | |
| | | apList = dao.LoadInfoList("", "", "", out recordCount, 99999, 1); |
| | | } |
| | | |
| | | //根据系统用户获取有权限客户 |
| | | string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, null); |
| | | |
| | | var list = _Dao.Query(beginTime, endTime, clientID, spID, apID, opID, statistype, (StatisOption)statisoption); |
| | | var list = _Dao.Query(beginTime, endTime, clientID, spID, apID, opID, statistype, permissionsSQL, (StatisOption)statisoption); |
| | | |
| | | System.Text.StringBuilder sb = new System.Text.StringBuilder(); |
| | | |
| | |
| | | <%@ Page Language="C#" masterpagefile="~/Main.master" AutoEventWireup="true" CodeFile="Setting.aspx.cs" Inherits="SettingPage" %>
|
| | | <asp:Content ID="Content3" ContentPlaceHolderID="title" runat="Server">
|
| | | 告警参数设置
|
| | | </asp:Content>
|
| | | <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
|
| | | <script>
|
| | | $(function () {
|
| | | var setting = <%=Newtonsoft.Json.JsonConvert.SerializeObject(this.Setting) %>
|
| | |
|
| | | var smtpProfile = $.evalJSON(setting.SmtpProfile);
|
| | | var wxProfile = $.evalJSON(setting.WxProfile);
|
| | | var sms57Profile = $.evalJSON(setting.SmsProfile);
|
| | |
|
| | | $("#SmtpServer").val(smtpProfile.SmtpServer);
|
| | | $("#SmtpPort").val(smtpProfile.SmtpPort);
|
| | | $("#SmtpUsername").val(smtpProfile.Username);
|
| | | $("#SmtpPassword").val(smtpProfile.Password);
|
| | | $("#SmtpSenderAddress").val(smtpProfile.SenderAddress);
|
| | | $("#SmtpSSL").iCheck(smtpProfile.SSL ? "check": "uncheck");
|
| | |
|
| | | $("#WxAppID").val(wxProfile.AppID);
|
| | | $("#WxAppSecret").val(wxProfile.AppSecret);
|
| | | $("#WxMsgTemplateID").val(wxProfile.MsgTemplateID);
|
| | |
|
| | | $("#SmsUserID").val( sms57Profile.UserID);
|
| | | $("#SmsAccount").val(sms57Profile.Account );
|
| | | $("#SmsPassword").val(sms57Profile.Password );
|
| | | $("#SmsMTURL").val(sms57Profile.MTURL);
|
| | | $("#SmsExtNo").val(sms57Profile.ExtNo);
|
| | | $("#CmSegments").val(setting.CmSegments);
|
| | | $("#CuSegments").val(setting.CuSegments);
|
| | | $("#CtSegments").val(setting.CtSegments);
|
| | | $("#GwName").val(setting.GwName);
|
| | | $("#BlackMoContent").val(setting.BlackMoContent);
|
| | |
|
| | |
|
| | | $(".action-save").on("click", function () {
|
| | | smtpProfile.SmtpServer = $("#SmtpServer").val();
|
| | | smtpProfile.SmtpPort = $("#SmtpPort").val();
|
| | | smtpProfile.Username = $("#SmtpUsername").val();
|
| | | smtpProfile.Password = $("#SmtpPassword").val();
|
| | | smtpProfile.SenderAddress = $("#SmtpSenderAddress").val();
|
| | | smtpProfile.SSL = $("#SmtpSSL").is(":checked") ? 1 : 0;
|
| | |
|
| | | wxProfile.AppID = $("#WxAppID").val();
|
| | | wxProfile.AppSecret = $("#WxAppSecret").val();
|
| | | wxProfile.MsgTemplateID = $("#WxMsgTemplateID").val();
|
| | | sms57Profile.UserID = $("#SmsUserID").val();
|
| | | sms57Profile.Account = $("#SmsAccount").val();
|
| | | sms57Profile.Password = $("#SmsPassword").val();
|
| | | sms57Profile.MTURL = $("#SmsMTURL").val();
|
| | | sms57Profile.ExtNo = $("#SmsExtNo").val();
|
| | |
|
| | | $.ajax({
|
| | | url: "setting.ashx",
|
| | | method: "POST",
|
| | | data: { action: "save",
|
| | | "smsProfile": $.toJSON(sms57Profile),
|
| | | "smtpProfile": $.toJSON(smtpProfile),
|
| | | "wxProfile": $.toJSON(wxProfile),
|
| | | "cmSegments":$("#CmSegments").val(),
|
| | | "cuSegments":$("#CuSegments").val(),
|
| | | "ctSegments":$("#CtSegments").val(),
|
| | | "gwName":$("#GwName").val(),
|
| | | "blackMoContent":$("#BlackMoContent").val()
|
| | | },
|
| | | success: function (result) {
|
| | | if (result.OK) {
|
| | | mytek.alert(result.Message,"success");
|
| | | } else {
|
| | | mytek.alert(result.Message,"warning");
|
| | | }
|
| | | }
|
| | | });
|
| | | });
|
| | | });
|
| | | </script>
|
| | | </asp:Content>
|
| | | <asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
|
| | | <form name="DefaultForm" method="post" action="GwSpUpdate.aspx" id="DefaultForm"
|
| | | class="form-horizontal">
|
| | | <div class="col-sm-12">
|
| | | <div class="ibox float-e-margins">
|
| | | <div class="ibox-title">
|
| | | 基础设置
|
| | | </div>
|
| | | |
| | | |
| | |
|
| | | <div class="ibox-content">
|
| | | <div class="form-group">
|
| | | <label class="control-label">
|
| | | 网关显示名称
|
| | | </label>
|
| | | <div>
|
| | | <input type="text" name="GwName" id="GwName" value="" class="form-control" />
|
| | | </div>
|
| | | </div>
|
| | | <div class="form-group hide">
|
| | | <label class="control-label">
|
| | | 版权信息
|
| | | </label>
|
| | | <div>
|
| | | <input type="text" name="CopyRights" id="CopyRights" value="" class="form-control" />
|
| | | </div>
|
| | | </div>
|
| | | <div class="form-group hide">
|
| | | <label class="control-label">
|
| | | 欢迎信息
|
| | | </label>
|
| | | <div>
|
| | | <input type="text" name="WelcomeMessage" id="WelcomeMessage" value="" class="form-control" />
|
| | | </div>
|
| | | </div>
|
| | | |
| | | <div class="form-group">
|
| | | <label class="control-label">
|
| | | 手机上行自动加黑(多个上行内容之间用英文分号" ; "分割,内容中可以使用通配符" * ",每个 * 号代表0-10个字符)
|
| | | </label>
|
| | | <div>
|
| | | <input type="text" value="" maxlength="1000" name="BlackMoContent" id="BlackMoContent" class="form-control" onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5\*\;\ ]/g,'')" |
| | | onpaste="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5\*\;\ ]/g,'')" oncontextmenu = "value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5\*\;\ ]/g,'')" />
|
| | | </div>
|
| | | </div>
|
| | | |
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | <div class="col-sm-6 ">
|
| | | <div class="ibox float-e-margins">
|
| | | <div class="ibox-title">
|
| | | 短信告警设置
|
| | | </div>
|
| | | <div class="ibox-content">
|
| | | <div class="form-group">
|
| | | <label class="control-label">
|
| | | USERID(接本SMGW网关平台,该值为0)</label>
|
| | | <input type="text" value="" name="SmsUserID" id="SmsUserID" class="form-control" />
|
| | | </div>
|
| | | <div class="form-group">
|
| | | <label class="control-label">
|
| | | 账号</label>
|
| | | <input type="text" value="" name="SmsAccount" id="SmsAccount" class="form-control" />
|
| | | </div>
|
| | | <div class="form-group">
|
| | | <label class="control-label">
|
| | | 密码</label>
|
| | | <input type="password" value="" name="SmsPassword" id="SmsPassword" class="form-control" />
|
| | | </div>
|
| | | <div class="form-group">
|
| | | <label class="control-label">
|
| | | 下发号码(或扩展码)</label>
|
| | | <input type="text" value="" name="SmsExtNo" id="SmsExtNo" class="form-control" />
|
| | | </div>
|
| | | <div class="form-group">
|
| | | <label class="control-label">
|
| | | 短信提交地址</label>
|
| | | <input type="text" value="" name="SmsMTURL" id="SmsMTURL" class="form-control" />
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | <div class="col-sm-6 ">
|
| | | <div class="ibox float-e-margins">
|
| | | <div class="ibox-title">
|
| | | 邮件告警设置
|
| | | </div>
|
| | | <div class="ibox-content">
|
| | | <div class="form-group ">
|
| | | <label class="control-label">
|
| | | SMTP服务器</label>
|
| | | <input type="text" value="" name="SmtpServer" id="SmtpServer" class="form-control" />
|
| | | </div>
|
| | | <div class="form-group">
|
| | | <label class="control-label">
|
| | | SMTP端口</label>
|
| | | <input type="text" value="" name="SmtpPort" id="SmtpPort" class="form-control" />
|
| | | </div>
|
| | | <div class="form-group">
|
| | | <label class="control-label">
|
| | | 发送方邮件地址</label><input type="text" value="" name="SmtpSenderAddress" id="SmtpSenderAddress"
|
| | | class="form-control" />
|
| | | </div>
|
| | | <div class="form-group">
|
| | | <label class="control-label">
|
| | | 登录账号</label><input type="text" value="" name="SmtpUsername" id="SmtpUsername" class="form-control" />
|
| | | </div>
|
| | | <div class="form-group ">
|
| | | <label class="control-label">
|
| | | 登录密码</label>
|
| | | <input type="password" value="" name="SmtpPassword" id="SmtpPassword" class="form-control" />
|
| | | </div>
|
| | | <div class="form-group ">
|
| | | <label class="control-label">
|
| | | 是否支持SSL</label>
|
| | | <input type="checkbox" value="" name="SmtpSSL" id="SmtpSSL" class="form-control icheck-me" />
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | <div class="ibox">
|
| | | <div class="ibox-content">
|
| | | <input class="action-save btn btn-primary pull-right" value="保存" type="button" />
|
| | | </div>
|
| | | </div>
|
| | | </form>
|
| | | </asp:Content>
|
| | | <%@ Page Language="C#" masterpagefile="~/Main.master" AutoEventWireup="true" CodeFile="Setting.aspx.cs" Inherits="SettingPage" %> |
| | | <asp:Content ID="Content3" ContentPlaceHolderID="title" runat="Server"> |
| | | 告警参数设置 |
| | | </asp:Content> |
| | | <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"> |
| | | <script> |
| | | $(function () { |
| | | var setting = <%=Newtonsoft.Json.JsonConvert.SerializeObject(this.Setting) %> |
| | | |
| | | var smtpProfile = $.evalJSON(setting.SmtpProfile); |
| | | var wxProfile = $.evalJSON(setting.WxProfile); |
| | | var sms57Profile = $.evalJSON(setting.SmsProfile); |
| | | |
| | | $("#SmtpServer").val(smtpProfile.SmtpServer); |
| | | $("#SmtpPort").val(smtpProfile.SmtpPort); |
| | | $("#SmtpUsername").val(smtpProfile.Username); |
| | | $("#SmtpPassword").val(smtpProfile.Password); |
| | | $("#SmtpSenderAddress").val(smtpProfile.SenderAddress); |
| | | $("#SmtpSSL").iCheck(smtpProfile.SSL ? "check": "uncheck"); |
| | | |
| | | $("#WxAppID").val(wxProfile.AppID); |
| | | $("#WxAppSecret").val(wxProfile.AppSecret); |
| | | $("#WxMsgTemplateID").val(wxProfile.MsgTemplateID); |
| | | |
| | | $("#SmsUserID").val( sms57Profile.UserID); |
| | | $("#SmsAccount").val(sms57Profile.Account ); |
| | | $("#SmsPassword").val(sms57Profile.Password ); |
| | | $("#SmsMTURL").val(sms57Profile.MTURL); |
| | | $("#SmsExtNo").val(sms57Profile.ExtNo); |
| | | $("#CmSegments").val(setting.CmSegments); |
| | | $("#CuSegments").val(setting.CuSegments); |
| | | $("#CtSegments").val(setting.CtSegments); |
| | | $("#GwName").val(setting.GwName); |
| | | $("#BlackMoContent").val(setting.BlackMoContent); |
| | | |
| | | |
| | | |
| | | $(".action-save").on("click", function () { |
| | | smtpProfile.SmtpServer = $("#SmtpServer").val(); |
| | | smtpProfile.SmtpPort = $("#SmtpPort").val(); |
| | | smtpProfile.Username = $("#SmtpUsername").val(); |
| | | smtpProfile.Password = $("#SmtpPassword").val(); |
| | | smtpProfile.SenderAddress = $("#SmtpSenderAddress").val(); |
| | | smtpProfile.SSL = $("#SmtpSSL").is(":checked") ? 1 : 0; |
| | | |
| | | wxProfile.AppID = $("#WxAppID").val(); |
| | | wxProfile.AppSecret = $("#WxAppSecret").val(); |
| | | wxProfile.MsgTemplateID = $("#WxMsgTemplateID").val(); |
| | | sms57Profile.UserID = $("#SmsUserID").val(); |
| | | sms57Profile.Account = $("#SmsAccount").val(); |
| | | sms57Profile.Password = $("#SmsPassword").val(); |
| | | sms57Profile.MTURL = $("#SmsMTURL").val(); |
| | | sms57Profile.ExtNo = $("#SmsExtNo").val(); |
| | | |
| | | $.ajax({ |
| | | url: "setting.ashx", |
| | | method: "POST", |
| | | data: { action: "save", |
| | | "smsProfile": $.toJSON(sms57Profile), |
| | | "smtpProfile": $.toJSON(smtpProfile), |
| | | "wxProfile": $.toJSON(wxProfile), |
| | | "cmSegments":$("#CmSegments").val(), |
| | | "cuSegments":$("#CuSegments").val(), |
| | | "ctSegments":$("#CtSegments").val(), |
| | | "gwName":$("#GwName").val(), |
| | | "blackMoContent":$("#BlackMoContent").val() |
| | | |
| | | }, |
| | | success: function (result) { |
| | | if (result.OK) { |
| | | mytek.alert(result.Message,"success"); |
| | | } else { |
| | | mytek.alert(result.Message,"warning"); |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | }); |
| | | </script> |
| | | </asp:Content> |
| | | <asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server"> |
| | | <form name="DefaultForm" method="post" action="GwSpUpdate.aspx" id="DefaultForm" |
| | | class="form-horizontal"> |
| | | <div class="col-sm-12"> |
| | | <div class="ibox float-e-margins"> |
| | | <div class="ibox-title"> |
| | | 基础设置 |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | <div class="ibox-content"> |
| | | <div class="form-group"> |
| | | <label class="control-label"> |
| | | 网关显示名称 |
| | | </label> |
| | | <div> |
| | | <input type="text" name="GwName" id="GwName" value="" class="form-control" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group hide"> |
| | | <label class="control-label"> |
| | | 版权信息 |
| | | </label> |
| | | <div> |
| | | <input type="text" name="CopyRights" id="CopyRights" value="" class="form-control" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group hide"> |
| | | <label class="control-label"> |
| | | 欢迎信息 |
| | | </label> |
| | | <div> |
| | | <input type="text" name="WelcomeMessage" id="WelcomeMessage" value="" class="form-control" /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="form-group"> |
| | | <label class="control-label"> |
| | | 手机上行自动加黑(多个上行内容之间用英文分号" ; "分割,内容中可以使用通配符" * ",每个 * 号代表0-10个字符) |
| | | </label> |
| | | <div> |
| | | <input type="text" value="" maxlength="1000" name="BlackMoContent" id="BlackMoContent" class="form-control" onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5\*\;\ ]/g,'')" |
| | | onpaste="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5\*\;\ ]/g,'')" oncontextmenu = "value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5\*\;\ ]/g,'')" /> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="col-sm-6 "> |
| | | <div class="ibox float-e-margins"> |
| | | <div class="ibox-title"> |
| | | 短信告警设置 |
| | | </div> |
| | | <div class="ibox-content"> |
| | | <div class="form-group"> |
| | | <label class="control-label"> |
| | | USERID(接本SMGW网关平台,该值为0)</label> |
| | | <input type="text" value="" name="SmsUserID" id="SmsUserID" class="form-control" /> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="control-label"> |
| | | 账号</label> |
| | | <input type="text" value="" name="SmsAccount" id="SmsAccount" class="form-control" /> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="control-label"> |
| | | 密码</label> |
| | | <input type="password" value="" name="SmsPassword" id="SmsPassword" class="form-control" /> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="control-label"> |
| | | 下发号码(或扩展码)</label> |
| | | <input type="text" value="" name="SmsExtNo" id="SmsExtNo" class="form-control" /> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="control-label"> |
| | | 短信提交地址</label> |
| | | <input type="text" value="" name="SmsMTURL" id="SmsMTURL" class="form-control" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="col-sm-6 "> |
| | | <div class="ibox float-e-margins"> |
| | | <div class="ibox-title"> |
| | | 邮件告警设置 |
| | | </div> |
| | | <div class="ibox-content"> |
| | | <div class="form-group "> |
| | | <label class="control-label"> |
| | | SMTP服务器</label> |
| | | <input type="text" value="" name="SmtpServer" id="SmtpServer" class="form-control" /> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="control-label"> |
| | | SMTP端口</label> |
| | | <input type="text" value="" name="SmtpPort" id="SmtpPort" class="form-control" /> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="control-label"> |
| | | 发送方邮件地址</label><input type="text" value="" name="SmtpSenderAddress" id="SmtpSenderAddress" |
| | | class="form-control" /> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="control-label"> |
| | | 登录账号</label><input type="text" value="" name="SmtpUsername" id="SmtpUsername" class="form-control" /> |
| | | </div> |
| | | <div class="form-group "> |
| | | <label class="control-label"> |
| | | 登录密码</label> |
| | | <input type="password" value="" name="SmtpPassword" id="SmtpPassword" class="form-control" /> |
| | | </div> |
| | | <div class="form-group "> |
| | | <label class="control-label"> |
| | | 是否支持SSL</label> |
| | | <input type="checkbox" value="" name="SmtpSSL" id="SmtpSSL" class="form-control icheck-me" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="ibox"> |
| | | <div class="ibox-content"> |
| | | <input class="action-save btn btn-primary pull-right" value="保存" type="button" /> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </asp:Content> |
| | |
| | | { |
| | | GwProduct bean = new GwProduct(); |
| | | bean.Classes = 1; |
| | | bean.IsDefault = -1; |
| | | bean.IsEnable = -1; |
| | | this.GwProductList = gwProductDao.getAllList(bean); |
| | | } |