代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
using BLL;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
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
|
||||
{
|
||||
@@ -15,7 +11,7 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
{
|
||||
#region 加载
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
@@ -25,7 +21,7 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,7 +64,7 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
var fileName = rootPath + initPath + hdFileName.Text;
|
||||
|
||||
ResponeData responeData;
|
||||
responeData = PhtglInvoiceService.ImportData(fileName, this.CurrUser.LoginProjectId,this.CurrUser.PersonId);
|
||||
responeData = PhtglInvoiceService.ImportData(fileName, this.CurrUser.LoginProjectId, this.CurrUser.PersonId);
|
||||
|
||||
|
||||
if (responeData.code == 1)
|
||||
|
||||
@@ -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>
|
||||
/// 查询按钮
|
||||
|
||||
@@ -1,18 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Security.Policy;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
using Org.BouncyCastle.Asn1.Ocsp;
|
||||
|
||||
namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
{
|
||||
public partial class InvoiceOrderDetail : PageBase
|
||||
{
|
||||
public string InvoiceId {
|
||||
public string InvoiceId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["InvoiceId"];
|
||||
@@ -47,41 +43,41 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
Type = HttpUtility.ParseQueryString(uri.Query).Get("Type");
|
||||
}
|
||||
Model.PHTGL_Invoice table = new Model.PHTGL_Invoice();
|
||||
table.ProjectId = this.CurrUser.LoginProjectId;
|
||||
table.InvoiceId=InvoiceId;
|
||||
table.ProjectId = this.CurrUser.LoginProjectId;
|
||||
table.InvoiceId = InvoiceId;
|
||||
var invoiceModel = BLL.PhtglInvoiceService.GetPHTGL_InvoiceById(InvoiceId);
|
||||
var ContractModel = BLL.ContractService.GetContractById(invoiceModel.ContractId);
|
||||
|
||||
|
||||
if (invoiceModel != null)
|
||||
{
|
||||
txtProjectName.Text=ProjectService.GetProjectNameByProjectId(invoiceModel.ProjectId);
|
||||
txtContractNum.Text= ContractModel?.ContractNum;
|
||||
txtSellerName.Text=invoiceModel.SellerName;
|
||||
txtOrderInDate.SelectedDate=invoiceModel.OrderInDate;
|
||||
txtInvoiceDate.Text=invoiceModel.InvoiceDate;
|
||||
txtOrderCode.Text=invoiceModel.OrderCode;
|
||||
txtInvoiceNumber.Text=invoiceModel.InvoiceNumber;
|
||||
txtOrderOutDate.SelectedDate=invoiceModel.OrderOutDate;
|
||||
txtMaterialRequisitionUnit.Text=invoiceModel.MaterialRequisitionUnit;
|
||||
txtProjectName.Text = ProjectService.GetProjectNameByProjectId(invoiceModel.ProjectId);
|
||||
txtContractNum.Text = ContractModel?.ContractNum;
|
||||
txtSellerName.Text = invoiceModel.SellerName;
|
||||
txtOrderInDate.SelectedDate = invoiceModel.OrderInDate;
|
||||
txtInvoiceDate.Text = invoiceModel.InvoiceDate;
|
||||
txtOrderCode.Text = invoiceModel.OrderCode;
|
||||
txtInvoiceNumber.Text = invoiceModel.InvoiceNumber;
|
||||
txtOrderOutDate.SelectedDate = invoiceModel.OrderOutDate;
|
||||
txtMaterialRequisitionUnit.Text = invoiceModel.MaterialRequisitionUnit;
|
||||
}
|
||||
|
||||
BindGrid();
|
||||
BindApproveData();
|
||||
if (Type=="0")
|
||||
if (Type == "0")
|
||||
{
|
||||
Grid1.Title = "入库单列表";
|
||||
PanelOrderIn.Hidden = false;
|
||||
}
|
||||
else if (Type=="1")
|
||||
else if (Type == "1")
|
||||
{
|
||||
PanelOrderOut.Hidden = false;
|
||||
Grid1.Title = "出库单列表";
|
||||
}
|
||||
|
||||
if (invoiceModel.CreateUser== this.CurrUser.PersonId) //创建人
|
||||
if (invoiceModel.CreateUser == this.CurrUser.PersonId) //创建人
|
||||
{
|
||||
TbCreate.Hidden = false;
|
||||
if (invoiceModel.State> PhtglInvoiceService.StateCreate)
|
||||
if (invoiceModel.State > PhtglInvoiceService.StateCreate)
|
||||
{
|
||||
Form_approve.Hidden = false;
|
||||
}
|
||||
@@ -91,14 +87,14 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
{
|
||||
TbApprove.Hidden = false;
|
||||
Form_approve.Hidden = false;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void BindApproveData()
|
||||
{
|
||||
var approveModel = PHTGL_ApproveService.GetAllApproveData(InvoiceId, Type=="0"? "Invoice_Input" : "Invoice_Output");
|
||||
{
|
||||
var approveModel = PHTGL_ApproveService.GetAllApproveData(InvoiceId, Type == "0" ? "Invoice_Input" : "Invoice_Output");
|
||||
if (approveModel != null)
|
||||
{
|
||||
Grid2.DataSource = approveModel;
|
||||
@@ -110,16 +106,16 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
var invoiceDetail = PhtglInvoicedetailService.GetPHTGL_InvoiceDetailByInvoiceId(InvoiceId);
|
||||
Grid1.DataSource = invoiceDetail;
|
||||
Grid1.DataBind();
|
||||
txtSumUnitPrice.Text= invoiceDetail.Sum(p=>p.UnitPrice).ToString();
|
||||
txtSumTax.Text=invoiceDetail.Sum(p=>p.Tax).ToString();
|
||||
txtSumAmount.Text=invoiceDetail.Sum(p=>p.Amount).ToString();
|
||||
txtAmountInWords.Text = Funs.NumericCapitalization(invoiceDetail.Sum(p => p.Amount)??0);
|
||||
txtSumUnitPrice.Text = invoiceDetail.Sum(p => p.UnitPrice).ToString();
|
||||
txtSumTax.Text = invoiceDetail.Sum(p => p.Tax).ToString();
|
||||
txtSumAmount.Text = invoiceDetail.Sum(p => p.Amount).ToString();
|
||||
txtAmountInWords.Text = Funs.NumericCapitalization(invoiceDetail.Sum(p => p.Amount) ?? 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected void Grid1_OnRowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
if (e.CommandName=="delete")
|
||||
if (e.CommandName == "delete")
|
||||
{
|
||||
PhtglInvoicedetailService.DeletePHTGL_InvoiceDetailById(e.RowID);
|
||||
BindGrid();
|
||||
@@ -128,7 +124,7 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
|
||||
protected void Grid1_RowDataBound(object sender, GridRowEventArgs e)
|
||||
{
|
||||
if (Type=="1")
|
||||
if (Type == "1")
|
||||
{
|
||||
Grid1.FindColumn("btnDelete").Hidden = true;
|
||||
}
|
||||
@@ -136,26 +132,26 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
|
||||
protected string GetTaxRate(object eval)
|
||||
{
|
||||
string result="";
|
||||
if (eval!=null)
|
||||
string result = "";
|
||||
if (eval != null)
|
||||
{
|
||||
decimal taxRate = Convert.ToDecimal(eval);
|
||||
string percentage = string.Format("{0:P0}", taxRate);
|
||||
result= percentage.Replace("%", "");
|
||||
}
|
||||
result = percentage.Replace("%", "");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
protected string GetNoTaxPrice(object amount, object tax)
|
||||
{
|
||||
//获取amount-tax 的值
|
||||
string result="";
|
||||
string result = "";
|
||||
if (amount != null && tax != null)
|
||||
{
|
||||
decimal amountValue = Convert.ToDecimal(amount);
|
||||
decimal taxValue = Convert.ToDecimal(tax);
|
||||
decimal noTaxPrice = amountValue - taxValue;
|
||||
result= noTaxPrice.ToString();
|
||||
result = noTaxPrice.ToString();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -163,12 +159,12 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
var invoiceModel = BLL.PhtglInvoiceService.GetPHTGL_InvoiceById(InvoiceId);
|
||||
invoiceModel.OrderInDate=txtOrderInDate.SelectedDate;
|
||||
invoiceModel.OrderOutDate=txtOrderOutDate.SelectedDate;
|
||||
invoiceModel.OrderCode=txtOrderCode.Text;
|
||||
invoiceModel.MaterialRequisitionUnit=txtMaterialRequisitionUnit.Text;
|
||||
invoiceModel.OrderInDate = txtOrderInDate.SelectedDate;
|
||||
invoiceModel.OrderOutDate = txtOrderOutDate.SelectedDate;
|
||||
invoiceModel.OrderCode = txtOrderCode.Text;
|
||||
invoiceModel.MaterialRequisitionUnit = txtMaterialRequisitionUnit.Text;
|
||||
BLL.PhtglInvoiceService.UpdatePHTGL_Invoice(invoiceModel);
|
||||
ShowNotify("保存成功!" ,MessageBoxIcon.Success);
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
|
||||
protected void btnEditProcess_Click(object sender, EventArgs e)
|
||||
@@ -187,7 +183,7 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
|
||||
protected void btnAgree_Click(object sender, EventArgs e)
|
||||
{
|
||||
PhtglInvoiceService.Approve(InvoiceId, int.Parse(Type),this.CurrUser.PersonId,true, txtApproveIdea.Text);
|
||||
PhtglInvoiceService.Approve(InvoiceId, int.Parse(Type), this.CurrUser.PersonId, true, txtApproveIdea.Text);
|
||||
ShowNotify("审批成功!", MessageBoxIcon.Success);
|
||||
if (!string.IsNullOrEmpty(Request.Params["PHTUrl"]))
|
||||
{
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
using BLL;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
@@ -40,25 +38,25 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
InvoiceId = Request.QueryString["InvoiceId"];
|
||||
Type = Request.QueryString["Type"];
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
var model= PhtglInvoiceService.GetPHTGL_InvoiceById(InvoiceId);
|
||||
var model = PhtglInvoiceService.GetPHTGL_InvoiceById(InvoiceId);
|
||||
int[] arr = new Int32[] { PhtglInvoiceService.StateCreate, PhtglInvoiceService.StateInPutApproveRefuse, PhtglInvoiceService.StateInPutApproveSuccess, PhtglInvoiceService.StateOutPutApproveRefuse, };
|
||||
if (arr.ToList().Contains(model.State.Value))
|
||||
{
|
||||
if (model.State== PhtglInvoiceService.StateInPutApproveRefuse|| model.State == PhtglInvoiceService.StateOutPutApproveRefuse)
|
||||
if (model.State == PhtglInvoiceService.StateInPutApproveRefuse || model.State == PhtglInvoiceService.StateOutPutApproveRefuse)
|
||||
{
|
||||
btnSubmit.Text="重新发起流程";
|
||||
btnSubmit.Text = "重新发起流程";
|
||||
}
|
||||
btnSubmit.Hidden = false;
|
||||
}
|
||||
if (Type=="0")
|
||||
if (Type == "0")
|
||||
{
|
||||
Panel_OrderIn.Hidden = false;
|
||||
|
||||
|
||||
}
|
||||
else if (Type == "1")
|
||||
{
|
||||
Panel_OrderOut.Hidden = false;
|
||||
}
|
||||
}
|
||||
//入库下拉框
|
||||
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(DropProfessionalEngineer, null, Const.UnitId_SEDIN, null, true);//专业工程师
|
||||
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(DropConstructionManager, null, Const.UnitId_SEDIN, null, true);//施工经理
|
||||
@@ -71,18 +69,18 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(DropConUnitMaterialOfficer, null, Const.UnitId_SEDIN, null, true);//施工单位材料经理
|
||||
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(DropConUnitProjectManager, null, Const.UnitId_SEDIN, null, true);//施工单位项目经理
|
||||
|
||||
var invoiceApproveManEntity= PhtglInvoiceService.GetInvoiceApproveManEntity(InvoiceId);
|
||||
var invoiceApproveManEntity = PhtglInvoiceService.GetInvoiceApproveManEntity(InvoiceId);
|
||||
//入库下拉框初始化值
|
||||
DropProfessionalEngineer.SelectedValue= invoiceApproveManEntity.InputApproveMan?.ProjectManager;
|
||||
DropConstructionManager.SelectedValue= invoiceApproveManEntity.InputApproveMan?.ConstructionManager;
|
||||
DropControlManager_In.SelectedValue= invoiceApproveManEntity.InputApproveMan?.ControlManager;
|
||||
DropProjectManager_In.SelectedValue= invoiceApproveManEntity.InputApproveMan?.ProjectManager;
|
||||
DropProfessionalEngineer.SelectedValue = invoiceApproveManEntity.InputApproveMan?.ProjectManager;
|
||||
DropConstructionManager.SelectedValue = invoiceApproveManEntity.InputApproveMan?.ConstructionManager;
|
||||
DropControlManager_In.SelectedValue = invoiceApproveManEntity.InputApproveMan?.ControlManager;
|
||||
DropProjectManager_In.SelectedValue = invoiceApproveManEntity.InputApproveMan?.ProjectManager;
|
||||
//出库下拉框初始化值
|
||||
DropPurchasingMan.SelectedValue= invoiceApproveManEntity.OutputApproveMan?.PurchasingMan;
|
||||
DropControlManager_Out.SelectedValue= invoiceApproveManEntity.OutputApproveMan?.ControlManager;
|
||||
DropProjectManager_Out.SelectedValue= invoiceApproveManEntity.OutputApproveMan?.ProjectManager;
|
||||
DropConUnitMaterialOfficer.SelectedValue = invoiceApproveManEntity.OutputApproveMan?.ConUnitMaterialOfficer;
|
||||
DropConUnitProjectManager.SelectedValue= invoiceApproveManEntity.OutputApproveMan?.ConUnitProjectManager;
|
||||
DropPurchasingMan.SelectedValue = invoiceApproveManEntity.OutputApproveMan?.PurchasingMan;
|
||||
DropControlManager_Out.SelectedValue = invoiceApproveManEntity.OutputApproveMan?.ControlManager;
|
||||
DropProjectManager_Out.SelectedValue = invoiceApproveManEntity.OutputApproveMan?.ProjectManager;
|
||||
DropConUnitMaterialOfficer.SelectedValue = invoiceApproveManEntity.OutputApproveMan?.ConUnitMaterialOfficer;
|
||||
DropConUnitProjectManager.SelectedValue = invoiceApproveManEntity.OutputApproveMan?.ConUnitProjectManager;
|
||||
|
||||
|
||||
}
|
||||
@@ -117,10 +115,10 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
}
|
||||
var model_In = new Inputapproveman()
|
||||
{
|
||||
ProfessionalEngineer= DropProfessionalEngineer.SelectedValue,
|
||||
ConstructionManager= DropConstructionManager.SelectedValue,
|
||||
ControlManager= DropControlManager_In.SelectedValue,
|
||||
ProjectManager= DropProjectManager_In.SelectedValue
|
||||
ProfessionalEngineer = DropProfessionalEngineer.SelectedValue,
|
||||
ConstructionManager = DropConstructionManager.SelectedValue,
|
||||
ControlManager = DropControlManager_In.SelectedValue,
|
||||
ProjectManager = DropProjectManager_In.SelectedValue
|
||||
};
|
||||
var model_Out = new Outputapproveman()
|
||||
{
|
||||
@@ -139,17 +137,17 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
{
|
||||
PhtglInvoiceService.SaveOutputApproveManEntity(InvoiceId, model_Out);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected void btnSubmit_Click(object sender, EventArgs e)
|
||||
{
|
||||
Save();
|
||||
PhtglInvoiceService.StartApprovalProcess(InvoiceId);
|
||||
OAWebSevice.Pushoa();
|
||||
ShowNotify("提交成功!",MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideReference());
|
||||
Save();
|
||||
PhtglInvoiceService.StartApprovalProcess(InvoiceId);
|
||||
OAWebSevice.Pushoa();
|
||||
ShowNotify("提交成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideReference());
|
||||
}
|
||||
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
{
|
||||
public partial class InvoiceStandingBook :PageBase
|
||||
public partial class InvoiceStandingBook : PageBase
|
||||
{
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
@@ -30,9 +25,9 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
private void BindGrid()
|
||||
{
|
||||
Model.PHTGL_Invoice table = new Model.PHTGL_Invoice();
|
||||
table.ProjectId=this.CurrUser.LoginProjectId;
|
||||
table.ProjectId = this.CurrUser.LoginProjectId;
|
||||
table.State = PhtglInvoiceService.StateDataIn;
|
||||
var tb = BLL.PhtglInvoiceService.GetListData(table, Grid1);
|
||||
var tb = BLL.PhtglInvoiceService.GetListData(table, Grid1);
|
||||
Grid1.RecordCount = PhtglInvoiceService.Count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
Grid1.DataSource = tb;
|
||||
@@ -177,7 +172,7 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
{
|
||||
// this.btnNew.Hidden = false;
|
||||
// this.btnNew.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnModify))
|
||||
{
|
||||
@@ -263,7 +258,7 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
}
|
||||
string ID = Grid1.SelectedRowID;
|
||||
var model = BLL.PhtglInvoiceService.GetPHTGL_InvoiceById(ID);
|
||||
if (model != null && !string.IsNullOrEmpty(model.ContractId))
|
||||
if (model != null && !string.IsNullOrEmpty(model.ContractId))
|
||||
{
|
||||
PhtglInvoiceService.ChangeStateToCreate(model.InvoiceId);
|
||||
ShowNotify("操作成功!", MessageBoxIcon.Success);
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
{
|
||||
@@ -44,7 +39,7 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
Model.PHTGL_Invoice model = BLL.PhtglInvoiceService.GetPHTGL_InvoiceById(this.InvoiceId);
|
||||
if (model != null)
|
||||
{
|
||||
|
||||
|
||||
this.txtInvoiceCode.Text = model.InvoiceCode;
|
||||
this.txtInvoiceNumber.Text = model.InvoiceNumber;
|
||||
this.txtSellerName.Text = model.SellerName;
|
||||
@@ -69,16 +64,16 @@ namespace FineUIPro.Web.PHTGL.InvoiceManage
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
if (string.IsNullOrEmpty(this.InvoiceId))
|
||||
{
|
||||
ShowNotify("暂不支持新增",MessageBoxIcon.Warning);
|
||||
ShowNotify("暂不支持新增", MessageBoxIcon.Warning);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
var model = PhtglInvoiceService.GetPHTGL_InvoiceById(InvoiceId);
|
||||
model.ContractId= DropContractCode.SelectedValue;
|
||||
model.ContractId = DropContractCode.SelectedValue;
|
||||
BLL.PhtglInvoiceService.UpdatePHTGL_Invoice(model);
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
|
||||
Reference in New Issue
Block a user