|
|
@@ -1555,6 +1555,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
}
|
|
|
|
|
|
+ //个人
|
|
|
//扶持期
|
|
|
decimal TotalAmtfc = 0;
|
|
|
decimal DAmtfc = 0;
|
|
|
@@ -1571,8 +1572,22 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
int JCountwd = 0;
|
|
|
decimal YAmtwd = 0;
|
|
|
|
|
|
- // int BCount = 0;
|
|
|
- // int ACount = 0;
|
|
|
+ // //团队
|
|
|
+ // //扶持期
|
|
|
+ // decimal TotalAmtfc1 = 0;
|
|
|
+ // decimal DAmtfc1 = 0;
|
|
|
+ // decimal JAmtfc1 = 0;
|
|
|
+ // decimal JfAmtfc1 = 0;
|
|
|
+ // int JCountfc1 = 0;
|
|
|
+ // decimal YAmtfc1 = 0;
|
|
|
+
|
|
|
+ // //稳定期
|
|
|
+ // decimal TotalAmtwd1 = 0;
|
|
|
+ // decimal DAmtwd1 = 0;
|
|
|
+ // decimal JAmtwd1 = 0;
|
|
|
+ // decimal JfAmtwd1 = 0;
|
|
|
+ // int JCountwd1 = 0;
|
|
|
+ // decimal YAmtwd1 = 0;
|
|
|
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
Dictionary<string, object> other = new Dictionary<string, object>();
|
|
|
@@ -1637,15 +1652,67 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
YAmtwd = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
|
- // dt = OtherMySqlConn.dtable("SELECT COUNT(0) count FROM PosMachinesTwo WHERE BindingState=1 AND ActivationState=0 AND UserId= '" + ParentId + "'" + cons);
|
|
|
+
|
|
|
+ // DataTable dts = OtherMySqlConn.dtable("select Sum(HelpNonDirectTradeAmt + HelpNonDirectDebitTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team' and UserId= '" + ParentId + "'" + con);
|
|
|
+ // if (dts.Rows.Count > 0)
|
|
|
+ // {
|
|
|
+ // TotalAmtfc1 = Convert.ToDecimal(function.CheckNum(dts.Rows[0][0].ToString()));
|
|
|
+ // }
|
|
|
+ // dts = OtherMySqlConn.dtable("select Sum(HelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team' and UserId= '" + ParentId + "'" + con);
|
|
|
// if (dt.Rows.Count > 0)
|
|
|
// {
|
|
|
- // BCount = Convert.ToInt32(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
+ // DAmtfc1 = Convert.ToDecimal(function.CheckNum(dts.Rows[0][0].ToString()));
|
|
|
// }
|
|
|
- // dt = OtherMySqlConn.dtable("SELECT COUNT(0) count FROM PosMachinesTwo WHERE BindingState=1 AND ActivationState=1 AND UserId= '" + ParentId + "'" + cons);
|
|
|
+ // dts = OtherMySqlConn.dtable("select Sum(HelpNonDirectDebitTradeAmt),Sum(HelpNonDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team' and UserId= '" + ParentId + "'" + con);
|
|
|
// if (dt.Rows.Count > 0)
|
|
|
// {
|
|
|
- // ACount = Convert.ToInt32(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
+ // JAmtfc1 = Convert.ToDecimal(function.CheckNum(dts.Rows[0][0].ToString())) - Convert.ToDecimal(function.CheckNum(dts.Rows[0][1].ToString()));
|
|
|
+ // }
|
|
|
+ // dts = OtherMySqlConn.dtable("select Sum(HelpNonDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team' and UserId= '" + ParentId + "'" + con);
|
|
|
+ // if (dts.Rows.Count > 0)
|
|
|
+ // {
|
|
|
+ // JfAmtfc1 = Convert.ToDecimal(function.CheckNum(dts.Rows[0][0].ToString()));
|
|
|
+ // }
|
|
|
+ // dts = OtherMySqlConn.dtable("select Sum(HelpNoonDirectDebitCapNum) from TradeDaySummary where QueryCount=0 and SeoTitle='team' and UserId= '" + ParentId + "'" + con);
|
|
|
+ // if (dts.Rows.Count > 0)
|
|
|
+ // {
|
|
|
+ // JCountfc1 = Convert.ToInt32(function.CheckInt(dts.Rows[0][0].ToString()));
|
|
|
+ // }
|
|
|
+ // dts = OtherMySqlConn.dtable("select Sum(HelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=1 and SeoTitle='team' and UserId= '" + ParentId + "'" + con);
|
|
|
+ // if (dts.Rows.Count > 0)
|
|
|
+ // {
|
|
|
+ // YAmtfc1 = Convert.ToDecimal(function.CheckNum(dts.Rows[0][0].ToString()));
|
|
|
+ // }
|
|
|
+
|
|
|
+ // dts = OtherMySqlConn.dtable("select Sum(NotHelpNoonDirectTradeAmt + NotHelpNonDirectDebitTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team' and UserId= '" + ParentId + "'" + con);
|
|
|
+ // if (dts.Rows.Count > 0)
|
|
|
+ // {
|
|
|
+ // TotalAmtwd1 = Convert.ToDecimal(function.CheckNum(dts.Rows[0][0].ToString()));
|
|
|
+ // }
|
|
|
+ // dts = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team' and UserId= '" + ParentId + "'" + con);
|
|
|
+ // if (dts.Rows.Count > 0)
|
|
|
+ // {
|
|
|
+ // DAmtwd1 = Convert.ToDecimal(function.CheckNum(dts.Rows[0][0].ToString()));
|
|
|
+ // }
|
|
|
+ // dts = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectDebitTradeAmt),Sum(NotHelpDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team' and UserId= '" + ParentId + "'" + con);
|
|
|
+ // if (dts.Rows.Count > 0)
|
|
|
+ // {
|
|
|
+ // JAmtwd1 = Convert.ToDecimal(function.CheckNum(dts.Rows[0][0].ToString())) - Convert.ToDecimal(function.CheckNum(dts.Rows[0][1].ToString()));
|
|
|
+ // }
|
|
|
+ // dts = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectDebitCapTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team' and UserId= '" + ParentId + "'" + con);
|
|
|
+ // if (dts.Rows.Count > 0)
|
|
|
+ // {
|
|
|
+ // JfAmtwd1 = Convert.ToDecimal(function.CheckNum(dts.Rows[0][0].ToString()));
|
|
|
+ // }
|
|
|
+ // dts = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectDebitCapNum) from TradeDaySummary where QueryCount=0 and SeoTitle='team' and UserId= '" + ParentId + "'" + con);
|
|
|
+ // if (dts.Rows.Count > 0)
|
|
|
+ // {
|
|
|
+ // JCountwd1 = Convert.ToInt32(function.CheckInt(dts.Rows[0][0].ToString()));
|
|
|
+ // }
|
|
|
+ // dts = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=1 and SeoTitle='team' and UserId= '" + ParentId + "'" + con);
|
|
|
+ // if (dts.Rows.Count > 0)
|
|
|
+ // {
|
|
|
+ // YAmtwd1 = Convert.ToDecimal(function.CheckNum(dts.Rows[0][0].ToString()));
|
|
|
// }
|
|
|
|
|
|
other.Add("TotalAmtfc", TotalAmtfc);
|
|
|
@@ -1662,8 +1729,19 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
other.Add("JCountwd", JCountwd);
|
|
|
other.Add("YAmtwd", YAmtwd);
|
|
|
|
|
|
- // other.Add("BCount", BCount);
|
|
|
- // other.Add("ACount", ACount);
|
|
|
+ // other.Add("TotalAmtfc1", TotalAmtfc1);
|
|
|
+ // other.Add("DAmtfc1", DAmtfc1);
|
|
|
+ // other.Add("JAmtfc1", JAmtfc1);
|
|
|
+ // other.Add("JfAmtfc1", JfAmtfc1);
|
|
|
+ // other.Add("JCountfc1", JCountfc1);
|
|
|
+ // other.Add("YAmtfc1", YAmtfc1);
|
|
|
+
|
|
|
+ // other.Add("TotalAmtwd1", TotalAmtwd1);
|
|
|
+ // other.Add("DAmtwd1", DAmtwd1);
|
|
|
+ // other.Add("JAmtwd1", JAmtwd1);
|
|
|
+ // other.Add("JfAmtwd1", JfAmtwd1);
|
|
|
+ // other.Add("JCountwd1", JCountwd1);
|
|
|
+ // other.Add("YAmtwd1", YAmtwd1);
|
|
|
db.Dispose();
|
|
|
obj.Add("other", other);
|
|
|
|