代码无效引用清理,试压包资料界面看板修改

This commit is contained in:
2025-10-10 14:33:21 +08:00
parent 87fb529521
commit 55b798135c
933 changed files with 5897 additions and 7541 deletions
@@ -6,9 +6,6 @@ using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.PHTGL.InvoiceManage
{
@@ -38,12 +35,12 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
private void BindGrid()
{
Model.PHTGL_Invoice table = new Model.PHTGL_Invoice();
table.ProjectId = this.CurrUser.LoginProjectId;
if( DropContractCode.SelectedValue!=Const._Null)
table.ProjectId = this.CurrUser.LoginProjectId;
if (DropContractCode.SelectedValue != Const._Null)
{
table.ContractId = this.DropContractCode.SelectedValue;
}
var tb = BLL.PhtglInvoiceService.GetOrderInListData(table, Grid1,drpStates.SelectedValue);
var tb = BLL.PhtglInvoiceService.GetOrderInListData(table, Grid1, drpStates.SelectedValue);
Grid1.RecordCount = PhtglInvoiceService.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb);
Grid1.DataSource = tb;
@@ -131,7 +128,7 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
}
if (buttonList.Contains(BLL.Const.BtnDelete))
{
// this.btnMenuDelete.Hidden = false;
// this.btnMenuDelete.Hidden = false;
}
}
}
@@ -192,23 +189,23 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
return sb.ToString();
}
#endregion
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName== "OrderInDetail")
{
if (e.CommandName == "OrderInDetail")
{
Window1.Title = "入库单详情";
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InvoiceOrderDetail.aspx?InvoiceId={0}&&Type={1}", e.RowID, "0", "编辑 - ")));
}
else if(e.CommandName== "OrderOutDetail")
else if (e.CommandName == "OrderOutDetail")
{
Window1.Title = "出库单详情";
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InvoiceOrderDetail.aspx?InvoiceId={0}&&Type={1}", e.RowID, "1", "编辑 - ")));
}
else if (e.CommandName == "OrderInDetailPrint")
{
Print(e.RowID,"0");
Print(e.RowID, "0");
}
else if (e.CommandName == "OrderOutDetailPrint")
{
@@ -220,7 +217,7 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
{
var id = e.RowID;
var model = BLL.PhtglInvoiceService.GetPHTGL_InvoiceById(id);
if (model.State> PhtglInvoiceService.StateDataIn)
if (model.State > PhtglInvoiceService.StateDataIn)
{
Grid1.FindColumn("btnOrderInDetail").Hidden = false;
Grid1.FindColumn("btnOrderInDetailPrint").Hidden = false;
@@ -233,7 +230,7 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
}
private void Print(string Id,string Type)
private void Print(string Id, string Type)
{
BLL.FastReportService.ResetData();
if (string.IsNullOrEmpty(Id))
@@ -242,8 +239,8 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
ShowNotify("请选择要打印的项", MessageBoxIcon.Warning);
return;
}
var printModel= PhtglInvoiceService.GetPHTGL_InvoicePrintModel(Id);
var printModel = PhtglInvoiceService.GetPHTGL_InvoicePrintModel(Id);
List<Order> orders = new List<Order>();
orders.Add(printModel.Order);
DataTable Table1 = LINQToDataTable(orders);
@@ -257,7 +254,7 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
Data.TableName = "Data";
}
List<OrderApproveIn> orderApproveIns = new List<OrderApproveIn>();
List<OrderApproveIn> orderApproveIns = new List<OrderApproveIn>();
orderApproveIns.Add(printModel.ApproveIn);
DataTable ApproveInData = LINQToDataTable(orderApproveIns);
if (ApproveInData != null)
@@ -273,11 +270,11 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
ApproveOutData.TableName = "ApproveOutData";
}
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("AmountInWords", Funs.NumericCapitalization(printModel.Data.Sum(p => p.Amount)));
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("AmountInWords", Funs.NumericCapitalization(printModel.Data.Sum(p => p.Amount)));
BLL.FastReportService.AddFastreportTable(Table1);
BLL.FastReportService.AddFastreportTable(Data);
BLL.FastReportService.AddFastreportTable(ApproveInData);
@@ -285,7 +282,7 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
BLL.FastReportService.AddFastreportParameter(keyValuePairs);
string initTemplatePath = "";
string rootPath = Server.MapPath("~/");
if (Type=="0")
if (Type == "0")
{
initTemplatePath = "File\\Fastreport\\发票存货入库单.frx";
}
@@ -298,7 +295,7 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("~/Controls/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
}
}
}
#region
/// <summary>
/// 查询按钮