public static string GetRetStr(string strAzTj, string bh) { SqlParameter[] param = new SqlParameter[] { new SqlParameter("@rt", SqlDbType.Int), new SqlParameter("@placement", bh) }; param[0].Direction = ParameterDirection.ReturnValue; DBHelper.ExecuteNonQuery("procAZDistrict", param, CommandType.StoredProcedure); string rt = param[0].Value.ToString(); BLL.TranslationBase tran = new BLL.TranslationBase(); string str555 = ""; if (HttpContext.Current.Session["Company"] != null) { str555 = (strAzTj == "az" ? " <a href='../RegisterMember/RegisterMember.aspx?LoginType=1&net=" + strAzTj + "&SelectGrass=" + qs1 + "&az=" + bh + "&qushu=" + rt + "'> " + tran.GetTran("007335", "注<br/>册") + " </a>" : tran.GetTran("007314", "空<br/>位")); } if (HttpContext.Current.Session["Store"] != null) { str555 = (strAzTj == "az" ? " <a href='../RegisterMember/RegisterMember.aspx?LoginType=2&net=" + strAzTj + "&SelectGrass=" + qs1 + "&az=" + bh + "&qushu=" + rt + "'>" + tran.GetTran("007335", "注<br/>册") + " </a>" : tran.GetTran("007314", "空<br/>位")); } if (HttpContext.Current.Session["Member"] != null) { str555 = (strAzTj == "az" ? " <a href='../RegisterMember/RegisterMember.aspx?LoginType=3&net=" + strAzTj + "&SelectGrass=" + qs1 + "&az=" + bh + "&qushu=" + rt + "' target='_top'>" + tran.GetTran("007335", "注<br/>册") + " </a>" : tran.GetTran("007314", "空<br/>位")); } return(str555); }
public static string GetOrderType(int type) { string orderType = ""; switch (type) { case 31: orderType = new BLL.TranslationBase().GetTran("10011", "公司注册"); break; case 21: orderType = "会员注册"; break; case 22: orderType = "抢购体验矿机"; break; case 23: orderType = "购买矿机"; break; case 24: orderType = "矿机升级"; break; case 25: orderType = "会员复投"; break; } return(orderType); }
/// <summary> /// 获取会员报单类型 /// </summary> /// <param name="type">类型ID INT</param> /// <returns>类型名称</returns> public static string GetMemberOrderType(int type) { string orderType = ""; switch (type) { case 11: orderType = new BLL.TranslationBase().GetTran("000555", "服务机构注册"); break; case 12: orderType = new BLL.TranslationBase().GetTran("001445", "服务机构复消"); break; case 22: orderType = new BLL.TranslationBase().GetTran("001448", "会员复消"); break; case 21: orderType = new BLL.TranslationBase().GetTran("007530", "会员注册"); break; case 31: orderType = new BLL.TranslationBase().GetTran("001458", "零购注册"); break; case 25: orderType = new BLL.TranslationBase().GetTran("008122", "会员复消提货"); break; } return(orderType); }
/// <summary> /// 获取会员报单类型 /// </summary> /// <param name="type">类型ID string</param> /// <returns>类型名称</returns> public static string GetMemberOrderType(string type) { string orderType = ""; switch (type) { case "31": orderType = new BLL.TranslationBase().GetTran("001458", "零购注册"); break; case "11": orderType = new BLL.TranslationBase().GetTran("000555", "服务机构注册"); break; case "21": orderType = new BLL.TranslationBase().GetTran("007530", "会员注册"); break; case "12": orderType = new BLL.TranslationBase().GetTran("001445", "服务机构复消"); break; case "22": orderType = new BLL.TranslationBase().GetTran("001448", "会员复消"); break; case "24": orderType = new BLL.TranslationBase().GetTran("009123", "自动复消报单"); break; case "25": orderType = new BLL.TranslationBase().GetTran("008122", "会员复消提货"); break; case "13": orderType = new BLL.TranslationBase().GetTran("008153", "服务机构升级单"); break; case "23": orderType = new BLL.TranslationBase().GetTran("008154", "会员升级单"); break; case "33": orderType = new BLL.TranslationBase().GetTran("008155", "公司升级单"); break; } return(orderType); }
public static string GetRetStr2(string strAzTj, string bh) { BLL.TranslationBase tran = new BLL.TranslationBase(); string str555 = "";// "<a href='../RegisterMember/RegisterMember.aspx?net=" + strAzTj + "&num=" + bh + "' target='_top'><font color='#000' style='font-size:10pt'>注册</font></a>"; if (HttpContext.Current.Session["Company"] != null) { str555 = "<a href='../RegisterMember/RegisterMember.aspx?net=" + strAzTj + "&num=" + bh + "&qushu=1' target='_self'><font color='#000' style='font-size:10pt'>" + tran.GetTran("007297", "注册") + "</font></a>"; } if (HttpContext.Current.Session["Store"] != null) { str555 = "<a href='../RegisterMember/RegisterMember.aspx?net=" + strAzTj + "&num=" + bh + "&qushu=1' target='_self'><font color='#000' style='font-size:10pt'>" + tran.GetTran("007297", "注册") + "</font></a>"; } if (HttpContext.Current.Session["Member"] != null) { str555 = "<a href='../RegisterMember/RegisterMember.aspx?net=" + strAzTj + "&num=" + bh + "&qushu=1' target='_top'><font color='#000' style='font-size:10pt'>" + tran.GetTran("007297", "注册") + "</font></a>"; } return(str555); }
/// <summary> /// 翻译grid字段中的数字 /// </summary> /// <param name="id"></param> /// <returns></returns> public static string GetDeftrayState(string id) { string deftrayState = null; switch (id) { case "0": deftrayState = "<font color=red>" + new BLL.TranslationBase().GetTran("000521", "未支付") + "</font>"; break; case "1": deftrayState = new BLL.TranslationBase().GetTran("000517", "已支付"); break; case "2": deftrayState = "<font color=red>" + new BLL.TranslationBase().GetTran("000521", "未支付") + "</font>"; break; } return(deftrayState); }
public static string GetOneTable(DataTable dt, string bh, int isAnTj) { BLL.TranslationBase tran = new BLL.TranslationBase(); StringBuilder sb = new StringBuilder(); string[] int1 = new string[6000]; string[] int2 = new string[6000]; string[] int3 = new string[6000]; DataRow[] row; row = dt.Select("Number='" + bh + "'", "Xuhao"); if (row[0]["number"].ToString().IndexOf("空点") == -1) { string[] strList = row[0]["DownChar"].ToString().Split('|'); if (row[0]["DownChar"].ToString().Trim() == "") { strList = new string[] { "-2", "-2" }; } int qs = strList.Length - 1; int k = 0; for (int i = 0; i < qs; i++) { string[] strList2 = strList[i].Split(','); for (int u = 0; u < strList2.Length; u++) { if (strList2.Length > 0) { if (strList2[0].ToString().Trim() != "") { int1[k] = strList2[0].ToString(); } } if (strList2.Length > 1) { if (strList2[1].ToString().Trim() != "") { int2[k] = strList2[1].ToString(); } } if (strList2.Length > 2) { if (strList2[2].ToString().Trim() != "") { int3[k] = strList2[2].ToString(); } } k++; break; } } int rsp = 3; //isAnTj == 2 为推荐 string mt = row[0]["mt"].ToString(); sb.Append("<table width='" + row[0]["Lenth"].ToString() + "' height='100%' cellspacing='0' cellpadding='0' bordercolor='#cccccc' border='1' bordercolordark='#ffffff' class='Tb22'><tbody><tr><td height='" + height1 + "' bgcolor='#649d2e' align='center' colspan='" + (qs + 1) + "'><a href='MemberNetMap.aspx?net=" + strAzTj + "&SelectGrass=" + qs1 + "&bianhao=" + bh + "'><font color='#fff'>" + mt + "</font></a></td></tr><tr><td height='" + height2 + "' align='center' colspan='" + (qs + 1) + "'>" + GetLevelStr(row[0]["LevelInt"].ToString()) + "</td></tr><tr><td bgcolor='#edf1f8' align='center' ><tr><td height='" + height3 + "' style=' width: 30px;'> </td>"); for (int i = 0; i < qs; i++) { sb.Append("<td >"); sb.Append((i + 1) + (isAnTj == 2 ? tran.GetTran("007332", "线") : tran.GetTran("007331", "区"))); sb.Append("</td>"); } sb.Append("</tr><tr><td style='padding:" + tdPadding + "'>" + tran.GetTran("007324", "总") + "</td>"); for (int i = 0; i < qs; i++) { if (int1[i] == "-1") { sb.Append("<td rowspan=" + rsp + " >"); sb.Append("<font style='font-size:12px;'>" + tran.GetTran("007334", "临<br/>时") + "</font>"); } else if (int1[i] == "-2") { sb.Append("<td rowspan=" + rsp + " >"); //sb.Append("<font style='font-size:12px;'>" + GetRetStr(strAzTj, bh) + "</font>"); } else { sb.Append("<td >"); sb.Append(int1[i].ToString()); } sb.Append("</td>"); } sb.Append("</tr>"); sb.Append("</tr>"); if (isAnTj == 1)//安置 { sb.Append("<tr><td style='padding:" + tdPadding + "'>" + tran.GetTran("007326", "余") + "</td>"); for (int i = 0; i < qs; i++) { if (int1[i] != "-1" && int1[i] != "-2") { sb.Append("<td >"); sb.Append(int2[i].ToString()); sb.Append("</td>"); } } sb.Append("</tr>"); } sb.Append("<tr><td style='padding:" + tdPadding + "'>" + tran.GetTran("007325", "新") + "</td>"); for (int i = 0; i < qs; i++) { if (int1[i] != "-1" && int1[i] != "-2") { sb.Append("<td >"); sb.Append(int3[i].ToString()); sb.Append("</td>"); } } sb.Append("</td></tr></tbody></table>"); } else { sb.Append("<table width='" + row[0]["Lenth"].ToString() + "' height='100%' cellspacing='0' cellpadding='0' align='center'><tbody><tr><td width='100%' height='" + height1 + "' align='center' colspan='2' valign='top'><table width='" + regDiv + "' cellspacing='0' cellpadding='0' bordercolor='#cccccc' border='1' bordercolordark='#ffffff' height='30' class='H2'><tbody><tr><td align='center'>" + GetRetStr2(strAzTj, bh) + "</td></tr></tbody></table></td></tr></tbody></table>"); } return(sb.ToString()); }