Browse Source

成本报表修改

yuanrf 7 months ago
parent
commit
ebce0fe16f
1 changed files with 62 additions and 0 deletions
  1. 62 0
      OASystem/OASystem.Api/Controllers/GroupsController.cs

+ 62 - 0
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -8228,6 +8228,25 @@ namespace OASystem.API.Controllers
                 //ws.Cells.HideRows((Row + startIndex + HideRows), 2);
             }
 
+            HideRows += 2;
+            leftBindData = left.leftinfoNumber.Find(x => x.title.Contains("头等舱"));
+            if (leftBindData != null)
+            {
+
+                designer.SetDataSource("JPTDCCB", leftBindData.cb);
+                designer.SetDataSource("JPTDCPNum", leftBindData.rs);
+                designer.SetDataSource("JPTDCXS", leftBindData.xs);
+                designer.SetDataSource("JPTDCZCB", decimal.Parse(leftBindData.cb) * decimal.Parse(leftBindData.rs));
+                designer.SetDataSource("JPTDCDRBJ", decimal.Parse(leftBindData.cb) * decimal.Parse(leftBindData.xs));
+                designer.SetDataSource("JPTDCZBJ", decimal.Parse(leftBindData.cb) * decimal.Parse(leftBindData.xs) * decimal.Parse(leftBindData.rs));
+                designer.SetDataSource("JPTDCDRLR", decimal.Parse(leftBindData.cb) * decimal.Parse(leftBindData.xs) - decimal.Parse(leftBindData.cb));
+                designer.SetDataSource("JPTDCZLR", ((decimal.Parse(leftBindData.cb) * decimal.Parse(leftBindData.xs)) - decimal.Parse(leftBindData.cb)) * decimal.Parse(leftBindData.rs));
+            }
+            else
+            {
+                hideRowsList.Add(Row + startIndex + HideRows);
+                //ws.Cells.HideRows((Row + startIndex + HideRows), 2);
+            }
 
             HideRows += 2;
             leftBindData = left.leftinfoNumber.Find(x => x.title.Contains("TBR"));
@@ -8541,6 +8560,48 @@ namespace OASystem.API.Controllers
                 hideRowsList.Add(Row + startIndex + HideRows);
             }
 
+            HideRows += 2;
+            rightBindData = right.rightInfoNumber.Find(x => x.title.Contains("头等舱 JS/ES"));
+            if (rightBindData != null)
+            {
+                //头等舱 + 小套房 JSES
+                designer.SetDataSource("lblTDCJSESDRCB", rightBindData.cb);
+                designer.SetDataSource("txtTDCJSESRS", rightBindData.rs);
+                designer.SetDataSource("lblTDCJSESZCB", decimal.Parse(rightBindData.cb) * decimal.Parse(rightBindData.rs));
+                designer.SetDataSource("lblTDCJSESDRBJ", rightBindData.bj);
+                designer.SetDataSource("lblTDCJSESZBJ", decimal.Parse(rightBindData.bj) * decimal.Parse(rightBindData.rs));
+                designer.SetDataSource("lblTDCJSESDRLR", decimal.Parse(rightBindData.bj) - decimal.Parse(rightBindData.cb));
+                designer.SetDataSource("lblTDCJSESZLR", (decimal.Parse(rightBindData.bj) - decimal.Parse(rightBindData.cb)) * decimal.Parse(rightBindData.rs));
+                TzZCB2 += decimal.Parse(rightBindData.cb) * decimal.Parse(rightBindData.rs);
+                TzZLR2 += (decimal.Parse(rightBindData.bj) - decimal.Parse(rightBindData.cb)) * decimal.Parse(rightBindData.rs);
+                TzZBJ2 += decimal.Parse(rightBindData.bj) * decimal.Parse(rightBindData.rs);
+            }
+            else
+            {
+                hideRowsList.Add(Row + startIndex + HideRows);
+            }
+
+
+            HideRows += 2;
+            rightBindData = right.rightInfoNumber.Find(x => x.title.Contains("头等舱 SUITE"));
+            if (rightBindData != null)
+            {
+                //头等舱 + 大套房
+                designer.SetDataSource("lblTDCSUITEDRCB", rightBindData.cb);
+                designer.SetDataSource("txtTDCSUITERS", rightBindData.rs);
+                designer.SetDataSource("lblTDCSUITEZCB", decimal.Parse(rightBindData.cb) * decimal.Parse(rightBindData.rs));
+                designer.SetDataSource("lblTDCSUITEDRBJ", rightBindData.bj);
+                designer.SetDataSource("lblTDCSUITEZBJ", decimal.Parse(rightBindData.bj) * decimal.Parse(rightBindData.rs));
+                designer.SetDataSource("lblTDCSUITEDRLR", decimal.Parse(rightBindData.bj) - decimal.Parse(rightBindData.cb));
+                designer.SetDataSource("lblTDCSUITEZLR", (decimal.Parse(rightBindData.bj) - decimal.Parse(rightBindData.cb)) * decimal.Parse(rightBindData.rs));
+                TzZCB2 += decimal.Parse(rightBindData.cb) * decimal.Parse(rightBindData.rs);
+                TzZLR2 += (decimal.Parse(rightBindData.bj) - decimal.Parse(rightBindData.cb)) * decimal.Parse(rightBindData.rs);
+                TzZBJ2 += decimal.Parse(rightBindData.bj) * decimal.Parse(rightBindData.rs);
+            }
+            else
+            {
+                hideRowsList.Add(Row + startIndex + HideRows);
+            }
 
             #endregion
 
@@ -8577,6 +8638,7 @@ namespace OASystem.API.Controllers
             designer.SetDataSource("HSName", "核酸检测(CNY)");
             designer.SetDataSource("AirGWCName", "机票-公务舱(CNY)");
             designer.SetDataSource("AirJJCName", "机票-经济舱(CNY)");
+            designer.SetDataSource("AirTDCName", "机票-头等舱(CNY)");
             designer.SetDataSource("BXName", "保险(CNY)");
             designer.SetDataSource("VisaName", "签证(CNY)");