|
|
@@ -997,6 +997,121 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
+
|
|
|
+ #region 直属创客导出Excel
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 直属创客导出Excel
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ public JsonResult ExportZSExcel(Users data, string MakerCode, string ParentMakerCode)
|
|
|
+ {
|
|
|
+ Dictionary<string, string> Fields = new Dictionary<string, string>();
|
|
|
+
|
|
|
+ string condition = " and Status>-1";
|
|
|
+ //创客编号
|
|
|
+ if (!string.IsNullOrEmpty(MakerCode))
|
|
|
+ {
|
|
|
+ condition += " and ParentUserId in (select UserId from UserForMakerCode where MakerCode='" + MakerCode + "')";
|
|
|
+ }
|
|
|
+ //直属创客编号
|
|
|
+ if (!string.IsNullOrEmpty(ParentMakerCode))
|
|
|
+ {
|
|
|
+ condition += " and ParentUserId in (select UserId from UserForMakerCode where MakerCode='" + ParentMakerCode + "')";
|
|
|
+ }
|
|
|
+
|
|
|
+ Dictionary<string, object> obj = new AdminContentOther(_accessor.HttpContext, PublicFunction.MainTables).IndexData("Users", Fields, "Id desc", "True", 1, 20000, condition, "Id,MakerCode,RealName,UserLevel", false);
|
|
|
+ List<Dictionary<string, object>> diclist = obj["data"] as List<Dictionary<string, object>>;
|
|
|
+ foreach (Dictionary<string, object> dic in diclist)
|
|
|
+ {
|
|
|
+ int Id = int.Parse(dic["Id"].ToString());
|
|
|
+ Users userZS = db.Users.FirstOrDefault(m => m.Id == Id) ?? new Users();
|
|
|
+ dic["MakerCode"] = userZS.MakerCode;
|
|
|
+ dic["RealName"] = userZS.RealName;
|
|
|
+ dic["UserLevel"] = RelationClass.GetUserLevelSetInfo(int.Parse(dic["UserLevel"].ToString()));
|
|
|
+ }
|
|
|
+ Dictionary<string, object> result = new Dictionary<string, object>();
|
|
|
+ result.Add("Status", "1");
|
|
|
+ result.Add("Info", "Excel报表-" + DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss") + ".xlsx");
|
|
|
+ result.Add("Obj", diclist);
|
|
|
+ Dictionary<string, object> ReturnFields = new Dictionary<string, object>();
|
|
|
+
|
|
|
+ ReturnFields.Add("Id", "Id");
|
|
|
+ ReturnFields.Add("MakerCode", "创客编号");
|
|
|
+ ReturnFields.Add("RealName", "创客姓名");
|
|
|
+ ReturnFields.Add("UserLevel", "创客等级");
|
|
|
+
|
|
|
+ result.Add("Fields", ReturnFields);
|
|
|
+ AddSysLog("0", "Users", "ExportZSExcel");
|
|
|
+ return Json(result);
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+
|
|
|
+ #region 上级创客导出Excel
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 上级创客导出Excel
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ public JsonResult ExportSJExcel(Users data, string MakerCode, string ParentMakerCode)
|
|
|
+ {
|
|
|
+ Dictionary<string, string> Fields = new Dictionary<string, string>();
|
|
|
+
|
|
|
+ string condition = " and Status>-1";
|
|
|
+ //创客编号
|
|
|
+ if (!string.IsNullOrEmpty(MakerCode))
|
|
|
+ {
|
|
|
+ var query = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == MakerCode);
|
|
|
+ Users self = db.Users.FirstOrDefault(m => m.Id == query.UserId);
|
|
|
+ if (self != null)
|
|
|
+ {
|
|
|
+ string ParentNav = function.CheckNull(self.ParentNav);
|
|
|
+ condition += " and Id in (" + ParentNav.Trim(',').Replace(",,", ",") + ")";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //直属创客编号
|
|
|
+ if (!string.IsNullOrEmpty(ParentMakerCode))
|
|
|
+ {
|
|
|
+ var query = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == ParentMakerCode);
|
|
|
+ Users self = db.Users.FirstOrDefault(m => m.Id == query.UserId);
|
|
|
+ if (self != null)
|
|
|
+ {
|
|
|
+ string ParentNav = function.CheckNull(self.ParentNav);
|
|
|
+ condition += " and Id in (" + ParentNav.Trim(',').Replace(",,", ",") + ")";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ Dictionary<string, object> obj = new AdminContentOther(_accessor.HttpContext, PublicFunction.MainTables).IndexData("Users", Fields, "Id desc", "True", 1, 20000, condition, "Id,MakerCode,RealName,UserLevel", false);
|
|
|
+ List<Dictionary<string, object>> diclist = obj["data"] as List<Dictionary<string, object>>;
|
|
|
+ foreach (Dictionary<string, object> dic in diclist)
|
|
|
+ {
|
|
|
+ int Id = int.Parse(dic["Id"].ToString());
|
|
|
+ Users userSJ = db.Users.FirstOrDefault(m => m.Id == Id) ?? new Users();
|
|
|
+ dic["MakerCode"] = userSJ.MakerCode;
|
|
|
+ dic["RealName"] = userSJ.RealName;
|
|
|
+ dic["UserLevel"] = RelationClass.GetUserLevelSetInfo(int.Parse(dic["UserLevel"].ToString()));
|
|
|
+ }
|
|
|
+ Dictionary<string, object> result = new Dictionary<string, object>();
|
|
|
+ result.Add("Status", "1");
|
|
|
+ result.Add("Info", "Excel报表-" + DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss") + ".xlsx");
|
|
|
+ result.Add("Obj", diclist);
|
|
|
+ Dictionary<string, object> ReturnFields = new Dictionary<string, object>();
|
|
|
+
|
|
|
+ ReturnFields.Add("Id", "Id");
|
|
|
+ ReturnFields.Add("MakerCode", "创客编号");
|
|
|
+ ReturnFields.Add("RealName", "创客姓名");
|
|
|
+ ReturnFields.Add("UserLevel", "创客等级");
|
|
|
+
|
|
|
+ result.Add("Fields", ReturnFields);
|
|
|
+ AddSysLog("0", "Users", "ExportExcel");
|
|
|
+ return Json(result);
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+
|
|
|
#region 同步数据
|
|
|
|
|
|
/// <summary>
|
|
|
@@ -1274,6 +1389,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
string end = "";
|
|
|
|
|
|
string condition = " and Status>-1";
|
|
|
+ string con = " and Status>-1";
|
|
|
string sort = "Id desc";
|
|
|
//创客编号
|
|
|
if (!string.IsNullOrEmpty(MakerCode))
|
|
|
@@ -1289,6 +1405,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
string[] datelist = CreateDateData.Split(new string[] { " - " }, StringSplitOptions.None);
|
|
|
start = datelist[0].Replace("-", "");
|
|
|
end = datelist[1].Replace("-", "");
|
|
|
+ con += " and TradeDate>='" + start + "' and TradeDate<='" + end + "'";
|
|
|
}
|
|
|
|
|
|
Dictionary<string, object> obj = new AdminContentOther(_accessor.HttpContext, PublicFunction.MainTables).IndexData("Users", Fields, sort, "True", page, limit, condition);
|
|
|
@@ -1338,63 +1455,63 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
Dictionary<string, object> other = new Dictionary<string, object>();
|
|
|
- DataTable dt = OtherMySqlConn.dtable("select Sum(HelpNonDirectTradeAmt + HelpNonDirectDebitTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '"+ParentId+"' and TradeDate >= '"+start+"' and TradeDate <= '"+end+"'");
|
|
|
+ DataTable dt = OtherMySqlConn.dtable("select Sum(HelpDirectTradeAmt + HelpDirectDebitTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '" + ParentId + "'" + con);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
TotalAmtfc = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(HelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '"+ParentId+"' and TradeDate >= '"+start+"' and TradeDate <= '"+end+"'");
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(HelpDirectTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '" + ParentId + "'" + con);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
DAmtfc = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(HelpNonDirectDebitTradeAmt),Sum(HelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '"+ParentId+"' and TradeDate >= '"+start+"' and TradeDate <= '"+end+"'");
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(HelpDirectDebitTradeAmt),Sum(HelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '" + ParentId + "'" + con);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
JAmtfc = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString())) - Convert.ToDecimal(function.CheckNum(dt.Rows[0][1].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(HelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '"+ParentId+"' and TradeDate >= '"+start+"' and TradeDate <= '"+end+"'");
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(HelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '" + ParentId + "'" + con);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
JfAmtfc = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(HelpDirectDebitCapNum) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '"+ParentId+"' and TradeDate >= '"+start+"' and TradeDate <= '"+end+"'");
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(HelpDirectDebitCapNum) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '" + ParentId + "'" + con);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
JCountfc = Convert.ToInt32(function.CheckInt(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(HelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=1 and SeoTitle='self' and UserId= '"+ParentId+"' and TradeDate >= '"+start+"' and TradeDate <= '"+end+"'");
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(HelpDirectTradeAmt) from TradeDaySummary where QueryCount=1 and SeoTitle='self' and UserId= '" + ParentId + "'" + con);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
YAmtfc = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectTradeAmt + NotHelpNonDirectDebitTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '"+ParentId+"' and TradeDate >= '"+start+"' and TradeDate <= '"+end+"'");
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(NotHelpDirectTradeAmt + NotHelpDirectDebitTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '" + ParentId + "'" + con);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
TotalAmtwd = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '"+ParentId+"' and TradeDate >= '"+start+"' and TradeDate <= '"+end+"'");
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(NotHelpDirectTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '" + ParentId + "'" + con);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
DAmtwd = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectDebitTradeAmt),Sum(NotHelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '"+ParentId+"' and TradeDate >= '"+start+"' and TradeDate <= '"+end+"'");
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(NotHelpDirectDebitTradeAmt),Sum(NotHelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '" + ParentId + "'" + con);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
JAmtwd = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString())) - Convert.ToDecimal(function.CheckNum(dt.Rows[0][1].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(NotHelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '"+ParentId+"' and TradeDate >= '"+start+"' and TradeDate <= '"+end+"'");
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(NotHelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '" + ParentId + "'" + con);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
JfAmtwd = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(NotHelpDirectDebitCapNum) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '"+ParentId+"' and TradeDate >= '"+start+"' and TradeDate <= '"+end+"'");
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(NotHelpDirectDebitCapNum) from TradeDaySummary where QueryCount=0 and SeoTitle='self' and UserId= '" + ParentId + "'" + con);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
JCountwd = Convert.ToInt32(function.CheckInt(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=1 and SeoTitle='self' and UserId= '"+ParentId+"' and TradeDate >= '"+start+"' and TradeDate <= '"+end+"'");
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(NotHelpDirectTradeAmt) from TradeDaySummary where QueryCount=1 and SeoTitle='self' and UserId= '" + ParentId + "'" + con);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
YAmtwd = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
@@ -1468,63 +1585,63 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
Dictionary<string, object> obj = new Dictionary<string, object>();
|
|
|
- DataTable dt = OtherMySqlConn.dtable("select Sum(HelpNonDirectTradeAmt + HelpNonDirectDebitTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'"+ condition);
|
|
|
+ DataTable dt = OtherMySqlConn.dtable("select Sum(HelpNonDirectTradeAmt + HelpNonDirectDebitTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'" + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
TotalAmtfc = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(HelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'"+ condition);
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(HelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'" + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
DAmtfc = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(HelpNonDirectDebitTradeAmt),Sum(HelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'"+ condition);
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(HelpNonDirectDebitTradeAmt),Sum(HelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'" + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
JAmtfc = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString())) - Convert.ToDecimal(function.CheckNum(dt.Rows[0][1].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(HelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'"+ condition);
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(HelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'" + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
JfAmtfc = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(HelpDirectDebitCapNum) from TradeDaySummary where QueryCount=0 and SeoTitle='team'"+ condition);
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(HelpDirectDebitCapNum) from TradeDaySummary where QueryCount=0 and SeoTitle='team'" + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
JCountfc = Convert.ToInt32(function.CheckInt(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(HelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=1 and SeoTitle='team'"+ condition);
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(HelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=1 and SeoTitle='team'" + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
YAmtfc = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectTradeAmt + NotHelpNonDirectDebitTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'"+ condition);
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectTradeAmt + NotHelpNonDirectDebitTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'" + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
TotalAmtwd = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'"+ condition);
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'" + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
DAmtwd = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectDebitTradeAmt),Sum(NotHelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'"+ condition);
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectDebitTradeAmt),Sum(NotHelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'" + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
JAmtwd = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString())) - Convert.ToDecimal(function.CheckNum(dt.Rows[0][1].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(NotHelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'"+ condition);
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(NotHelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'" + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
JfAmtwd = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(NotHelpDirectDebitCapNum) from TradeDaySummary where QueryCount=0 and SeoTitle='team'"+ condition);
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(NotHelpDirectDebitCapNum) from TradeDaySummary where QueryCount=0 and SeoTitle='team'" + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
JCountwd = Convert.ToInt32(function.CheckInt(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=1 and SeoTitle='team'"+ condition);
|
|
|
+ dt = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=1 and SeoTitle='team'" + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
YAmtwd = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|