Browse Source

Merge branch 'master' of https://gitee.com/zxyabc/COMONE

master
TML 4 years ago
parent
commit
d7259b0d7d
  1. 1
      .gitignore
  2. 2
      Controller/SCP_EXCEL_CONTROLLER.cs
  3. 20
      Controller/SCP_RECEIVE_CONTROLLER.cs
  4. 2
      Controller/SCP_TS_BARCODE_CONTROLLER.cs
  5. 2
      Models/ScpEntity/V_TB_INVOICE.cs
  6. 6
      Models/UniApiEntity/xxscm_inv_det.cs
  7. 6
      SCP/Views/SupplierData/SCP_ASK.aspx.cs
  8. 4
      SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs
  9. 33
      SCP/Views/WarehouseData/SCP_RECEIVE_DETAIL.aspx
  10. 19
      SCP/Views/WarehouseData/SCP_RECEIVE_DETAIL.aspx.cs
  11. 82
      SCP/Views/WarehouseData/SCP_RECEIVE_DETAIL.aspx.designer.cs
  12. 2
      SCP/Views/锦州锦恒/SupplierData/SCP_ASN_DETAIL.aspx
  13. 4
      SCP/Views/锦州锦恒/SupplierData/SCP_ASN_DETAIL.aspx.cs
  14. 2
      SCP/Views/锦州锦恒/SupplierData/SCP_SHIP_DETAIL_BARCODE.aspx.cs
  15. 1
      SCP/default.aspx
  16. 3
      UniApiGroup/Controller/OdbcApiScpController.cs

1
.gitignore

@ -264,3 +264,4 @@ __pycache__/
/SCP/exportfiles/收货审核明细-20180530142739101.xls /SCP/exportfiles/收货审核明细-20180530142739101.xls
/SCP/exportfiles/收货审核明细-20180530142542391.xls /SCP/exportfiles/收货审核明细-20180530142542391.xls
/SCP/exportfiles /SCP/exportfiles
/SCP/grf

2
Controller/SCP_EXCEL_CONTROLLER.cs

@ -133,7 +133,7 @@ namespace CK.SCP.Controller
po_detail. = DateTime.Now.ToShortDateString(); po_detail. = DateTime.Now.ToShortDateString();
po_detail. = itm.PoUnit; po_detail. = itm.PoUnit;
po_detail. = _po.Site; po_detail. = _po.Site;
po_detail. = _po.Remark; po_detail. = _po.SubSite==null? _po.Site: _po.SubSite;
po_detail. = _po.Buyer; po_detail. = _po.Buyer;
po_detail. = _po.BuyerPhone; po_detail. = _po.BuyerPhone;
po_detail. = itm.Price.ToString(); po_detail. = itm.Price.ToString();

20
Controller/SCP_RECEIVE_CONTROLLER.cs

@ -183,6 +183,10 @@ namespace CK.SCP.Controller
{ {
q = q.Where(p => p.RecvBillNum.Contains(p_entity.RecvBillNum)); q = q.Where(p => p.RecvBillNum.Contains(p_entity.RecvBillNum));
} }
if (!string.IsNullOrEmpty(p_entity.ErpRecvBillNum))
{
q = q.Where(p => p.ErpRecvBillNum.Contains(p_entity.ErpRecvBillNum));
}
if (!string.IsNullOrEmpty(p_entity.PoBillNum)) if (!string.IsNullOrEmpty(p_entity.PoBillNum))
{ {
q = q.Where(p => p.PoBillNum.Contains(p_entity.PoBillNum)); q = q.Where(p => p.PoBillNum.Contains(p_entity.PoBillNum));
@ -518,6 +522,10 @@ namespace CK.SCP.Controller
{ {
q = q.Where(p => p.RecvBillNum == p_entity.RecvBillNum); q = q.Where(p => p.RecvBillNum == p_entity.RecvBillNum);
} }
if (!string.IsNullOrEmpty(p_entity.ErpRecvBillNum))
{
q = q.Where(p => p.ErpRecvBillNum == p_entity.ErpRecvBillNum);
}
if (p_entity.PoLine != 0) if (p_entity.PoLine != 0)
{ {
q = q.Where(p => p.PoLine == p_entity.PoLine); q = q.Where(p => p.PoLine == p_entity.PoLine);
@ -526,10 +534,6 @@ namespace CK.SCP.Controller
{ {
q = q.Where(p => p.PartCode.Contains(p_entity.PartCode)); q = q.Where(p => p.PartCode.Contains(p_entity.PartCode));
} }
if (!string.IsNullOrEmpty(p_entity.Site))
{
q = q.Where(p => p.PartCode.Contains(p_entity.Site));
}
if (!string.IsNullOrEmpty(p_entity.Batch)) if (!string.IsNullOrEmpty(p_entity.Batch))
{ {
q = q.Where(p => p.Batch.Contains(p_entity.Batch)); q = q.Where(p => p.Batch.Contains(p_entity.Batch));
@ -658,7 +662,7 @@ namespace CK.SCP.Controller
if (p_state == ReceiveState.Check) if (p_state == ReceiveState.Check)
{ {
var _ls = db.V_TB_RECEIVE.Where(p => p_list.Contains(p.RecvBillNum) && p.Site==p_site).ToList(); var _ls = db.V_TB_RECEIVE.Where(p => p_list.Contains(p.ErpRecvBillNum) && p.Site==p_site).ToList();
int count = _ls.Count(p => p.State == (int)ReceiveState.Receive); int count = _ls.Count(p => p.State == (int)ReceiveState.Receive);
if (count == _ls.Count && _ls.Count > 0) if (count == _ls.Count && _ls.Count > 0)
{ {
@ -666,7 +670,7 @@ namespace CK.SCP.Controller
{ {
p.OperName = userName; p.OperName = userName;
p.State = (int)ReceiveState.Check; p.State = (int)ReceiveState.Check;
var _list = db.TB_RECEIVE_DETAIL_QAD.Where(itm => itm.RecvBillNum == p.RecvBillNum && itm.Site == p_site).ToList(); var _list = db.TB_RECEIVE_DETAIL_QAD.Where(itm => itm.ErpRecvBillNum == p.ErpRecvBillNum && itm.Site == p_site).ToList();
_list.ForEach(itm => itm.State = (int)ReceiveState.Check); _list.ForEach(itm => itm.State = (int)ReceiveState.Check);
db.TB_RECEIVE_DETAIL_QAD.AddOrUpdate(itm => itm.UID, _list.ToArray()); db.TB_RECEIVE_DETAIL_QAD.AddOrUpdate(itm => itm.UID, _list.ToArray());
#region 收货审核提醒供应商提起发票申请 #region 收货审核提醒供应商提起发票申请
@ -707,7 +711,7 @@ namespace CK.SCP.Controller
} }
if (p_state == ReceiveState.Reject) if (p_state == ReceiveState.Reject)
{ {
var _ls = db.V_TB_RECEIVE.Where(p => p_list.Contains(p.RecvBillNum) && p.Site == p_site).ToList(); var _ls = db.V_TB_RECEIVE.Where(p => p_list.Contains(p.ErpRecvBillNum) && p.Site == p_site).ToList();
int count = _ls.Count(p => p.State == (int)ReceiveState.Receive); int count = _ls.Count(p => p.State == (int)ReceiveState.Receive);
if (count == _ls.Count && _ls.Count > 0) if (count == _ls.Count && _ls.Count > 0)
{ {
@ -716,7 +720,7 @@ namespace CK.SCP.Controller
p.OperName = userName; p.OperName = userName;
p.State = (int)ReceiveState.Reject; p.State = (int)ReceiveState.Reject;
p.IsDeleted = true; p.IsDeleted = true;
var _list = db.TB_RECEIVE_DETAIL_QAD.Where(itm => itm.RecvBillNum == p.RecvBillNum && p.Site == p_site).ToList(); var _list = db.TB_RECEIVE_DETAIL_QAD.Where(itm => itm.ErpRecvBillNum == p.ErpRecvBillNum && p.Site == p_site).ToList();
_list.ForEach(itm => _list.ForEach(itm =>
{ {
itm.State = (int)ReceiveState.Reject; itm.State = (int)ReceiveState.Reject;

2
Controller/SCP_TS_BARCODE_CONTROLLER.cs

@ -107,7 +107,6 @@ namespace CK.SCP.Controller
{ {
q = q.Where(p => p.PartName.Contains(p_entity.PartName)); q = q.Where(p => p.PartName.Contains(p_entity.PartName));
} }
_ret.State = ReturnStatus.Succeed; _ret.State = ReturnStatus.Succeed;
_ret.Result = q; _ret.Result = q;
p_action(_ret); p_action(_ret);
@ -175,7 +174,6 @@ namespace CK.SCP.Controller
{ {
q = q.Where(p => p.PartCode.Contains(p_entity.PartCode)); q = q.Where(p => p.PartCode.Contains(p_entity.PartCode));
} }
if (!string.IsNullOrEmpty(p_entity.Batch)) if (!string.IsNullOrEmpty(p_entity.Batch))
{ {
q = q.Where(p => p.Batch.Contains(p_entity.Batch)); q = q.Where(p => p.Batch.Contains(p_entity.Batch));

2
Models/ScpEntity/V_TB_INVOICE.cs

@ -66,7 +66,7 @@ namespace CK.SCP.Models.ScpEntity
[StringLength(50)] [StringLength(50)]
public string DiscountRemark { get; set; } public string DiscountRemark { get; set; }
public bool IsRed { get; set; } public bool IsRed { get; set; }
public decimal? MoldSharingPrice { get; set; } //分摊价格 //public decimal? MoldSharingPrice { get; set; } //分摊价格
public string AskCreateUser { get; set; } //要货看板创建人 public string AskCreateUser { get; set; } //要货看板创建人
/// <summary> /// <summary>
/// 采购价 /// 采购价

6
Models/UniApiEntity/xxscm_inv_det.cs

@ -99,6 +99,12 @@ namespace CK.SCP.Models.UniApiEntity
public decimal xxscm_inv_tottaxvar { get; set; } public decimal xxscm_inv_tottaxvar { get; set; }
public decimal xxscm_inv_totdiscount { get; set; } public decimal xxscm_inv_totdiscount { get; set; }
public decimal xxscm_inv_totclaim { get; set; }
public string xxscm_inv_project { get; set; } public string xxscm_inv_project { get; set; }
public decimal xxscm_inv_extend1 { get; set; } public decimal xxscm_inv_extend1 { get; set; }

6
SCP/Views/SupplierData/SCP_ASK.aspx.cs

@ -118,12 +118,8 @@ namespace SCP.Views.SupplierData
CurrentUser.VenderList = new List<string>() { "00000000000" }; CurrentUser.VenderList = new List<string>() { "00000000000" };
} }
_entity.UserInVendIds = CurrentUser.VenderList; _entity.UserInVendIds = CurrentUser.VenderList;
_entity.BillStateList = new List<int> { (int)AskState.Confirm, (int)AskState.Release, (int)AskState.Ship, (int)AskState.Receive };
} }
//if (CurrentUser.RoleList.Contains("供应商"))
//{
// _entity.BillStateList = new List<int> { (int)AskState.Confirm, (int)AskState.Release, (int)AskState.Ship, (int)AskState.Receive };
//}
SCP_ASK_CONTROLLER.Get_V_TB_ASK_List(_entity, (_ret) => { SCP_ASK_CONTROLLER.Get_V_TB_ASK_List(_entity, (_ret) => {
if (_ret.State == ReturnStatus.Succeed) if (_ret.State == ReturnStatus.Succeed)
{ {

4
SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs

@ -126,7 +126,7 @@ namespace SCP.WarehouseData
} }
protected void Grid1_OnRowDoubleClick(object sender, GridRowClickEventArgs e) protected void Grid1_OnRowDoubleClick(object sender, GridRowClickEventArgs e)
{ {
string ID = GetSelectedDataKey(Grid_V_TB_RECEIVE, 1); string ID = GetSelectedDataKey(Grid_V_TB_RECEIVE, 2);
string Site = GetSelectedDataKey(Grid_V_TB_RECEIVE, 4); string Site = GetSelectedDataKey(Grid_V_TB_RECEIVE, 4);
string STATE = Grid_V_TB_RECEIVE.Rows[e.RowIndex].Values[0].ToString(); string STATE = Grid_V_TB_RECEIVE.Rows[e.RowIndex].Values[0].ToString();
@ -219,7 +219,7 @@ namespace SCP.WarehouseData
return; return;
} }
} }
_ls.Add(rowDataKeys[1] as string); _ls.Add(rowDataKeys[2] as string);
var erpRec = rowDataKeys[2] as string; var erpRec = rowDataKeys[2] as string;
if (string.IsNullOrEmpty(erpRec)) if (string.IsNullOrEmpty(erpRec))
{ {

33
SCP/Views/WarehouseData/SCP_RECEIVE_DETAIL.aspx

@ -18,7 +18,7 @@
</f:Button> </f:Button>
<f:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click" Text="报废收货退货单" Icon="Accept" OnClientClick="if(!confirm('系统管理员是否要删除删除后不能恢复?'))return false;" EnablePostBack="True"> <f:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click" Text="报废收货退货单" Icon="Accept" OnClientClick="if(!confirm('系统管理员是否要删除删除后不能恢复?'))return false;" EnablePostBack="True">
</f:Button> </f:Button>
<f:Button ID="btnBack" runat="server" EnablePostBack="True" Text="" Icon="Cancel" OnClick="btnBack_Click" OnClientClick="if(!confirm('是否取消审核?'))return false;"> <f:Button ID="btnBack" runat="server" EnablePostBack="True" Text="取消审核" Icon="Cancel" OnClick="btnBack_Click" OnClientClick="if(!confirm('是否取消审核?'))return false;">
</f:Button> </f:Button>
</Items> </Items>
</f:Toolbar> </f:Toolbar>
@ -28,37 +28,32 @@
<Items> <Items>
<f:FormRow runat="server" ColumnWidths="33% 33% 33%" ID="F_PO_DETAIL" Hidden="true"> <f:FormRow runat="server" ColumnWidths="33% 33% 33%" ID="F_PO_DETAIL" Hidden="true">
<Items> <Items>
<f:TextBox ID="txtBillNo" runat="server" Label="单据号" Text="" Width="600"> <f:TextBox ID="txtState" runat="server" Label="状态" Text="" Readonly="true" />
</f:TextBox> <f:TextBox ID="txtErpBillNo" runat="server" Label="ERP单据号" Text="" Width="600"/>
<f:TextBox ID="txtShipBillNo" runat="server" Label="发货单" Text="" Width="600"> <f:TextBox ID="txtBillNo" runat="server" Label="WMS单据号" Text="" Width="600"/>
</f:TextBox>
<f:TextBox ID="txtPlanBillNo" runat="server" Label="订单号" Text="" Readonly="true" />
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> <f:FormRow runat="server" ColumnWidths="33% 33% 33%">
<Items> <Items>
<f:TextBox ID="txtState" runat="server" Label="状态" Text="" Readonly="true" /> <f:TextBox ID="txtPlanBillNo" runat="server" Label="订单号" Text="" Readonly="true" />
<f:TextBox ID="txtSupplierName" runat="server" Label="供应商" Text=""> <f:TextBox ID="txtShipBillNo" runat="server" Label="发货单" Text="" Width="600"/>
</f:TextBox> <f:TextBox ID="txtSupplierName" runat="server" Label="供应商" Text=""/>
<f:Label runat="server" />
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> <f:FormRow runat="server" ColumnWidths="33% 33% 33%">
<Items> <Items>
<f:TextBox ID="txtDeliveryAddress" runat="server" Label="地址" Text=""> <f:TextBox ID="txtDeliveryAddress" runat="server" Label="地址" Text=""/>
</f:TextBox> <f:TextBox ID="txtReceiveTime" runat="server" Label="时间" Text=""/>
<f:TextBox ID="txtReceiveTime" runat="server" Label="时间" Text=""> <f:TextBox ID="txtUserName" runat="server" Label="审核员" Text="" Readonly="true" />
</f:TextBox>
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> <f:FormRow runat="server" ColumnWidths="33% 33% 33%">
<Items> <Items>
<f:TextBox ID="txtUserName" runat="server" Label="审核员" Text="" Readonly="true" /> <f:TextBox ID="txtMemo" runat="server" Label="备注" Text=""/>
<f:TextBox ID="txtMemo" runat="server" Label="备注" Text="">
</f:TextBox>
<f:Label ID="TextBox2" runat="server" Text=""> <f:Label ID="TextBox2" runat="server" Text="">
</f:Label> </f:Label>
<f:Label ID="TextBox3" runat="server" Text="">
</f:Label>
</Items> </Items>
</f:FormRow> </f:FormRow>
</Items> </Items>

19
SCP/Views/WarehouseData/SCP_RECEIVE_DETAIL.aspx.cs

@ -37,7 +37,7 @@ namespace SCP.WarehouseData
public void LoadData() public void LoadData()
{ {
var _receive = new V_TB_RECEIVE(); var _receive = new V_TB_RECEIVE();
_receive.RecvBillNum = GetQueryValue("ID"); _receive.ErpRecvBillNum = GetQueryValue("ID");
_receive.UserInAddress = CurrentUser.FactoryList; _receive.UserInAddress = CurrentUser.FactoryList;
if (GetQueryValue("STATE") != null) if (GetQueryValue("STATE") != null)
{ {
@ -50,6 +50,7 @@ namespace SCP.WarehouseData
var _rec = ret.Result.FirstOrDefault(); var _rec = ret.Result.FirstOrDefault();
txtState.Text = _rec.State_DESC; txtState.Text = _rec.State_DESC;
txtBillNo.Text = _rec.RecvBillNum; txtBillNo.Text = _rec.RecvBillNum;
txtErpBillNo.Text = _rec.ErpRecvBillNum;
txtReceiveTime.Text = Convert.ToDateTime(_rec.ShipTime).ToString("yyyy-MM-dd"); txtReceiveTime.Text = Convert.ToDateTime(_rec.ShipTime).ToString("yyyy-MM-dd");
txtShipBillNo.Text = _rec.AsnBillNum; txtShipBillNo.Text = _rec.AsnBillNum;
txtPlanBillNo.Text = _rec.PoBillNum; txtPlanBillNo.Text = _rec.PoBillNum;
@ -65,7 +66,7 @@ namespace SCP.WarehouseData
{ {
var _receive = new V_TB_RECEIVE_DETAIL(); var _receive = new V_TB_RECEIVE_DETAIL();
_receive.Site =CurrentUser.UsedDomain; _receive.Site =CurrentUser.UsedDomain;
_receive.RecvBillNum = GetQueryValue("ID"); _receive.ErpRecvBillNum = GetQueryValue("ID");
SCP_RECIVECE_CONTROLLER.Get_V_TB_RECEIVE_DETAIL_List(_receive, (ret) => SCP_RECIVECE_CONTROLLER.Get_V_TB_RECEIVE_DETAIL_List(_receive, (ret) =>
{ {
@ -83,7 +84,7 @@ namespace SCP.WarehouseData
public void BindData_View() public void BindData_View()
{ {
var _receive = new V_TB_RECEIVE_DETAIL(); var _receive = new V_TB_RECEIVE_DETAIL();
_receive.RecvBillNum = GetQueryValue("ID"); _receive.ErpRecvBillNum = GetQueryValue("ID");
if (string.IsNullOrEmpty(Request["ID"].Trim())) if (string.IsNullOrEmpty(Request["ID"].Trim()))
{ {
if (!string.IsNullOrEmpty("PartCode")) if (!string.IsNullOrEmpty("PartCode"))
@ -127,7 +128,7 @@ namespace SCP.WarehouseData
protected void btnOutput_OnClick(object sender, EventArgs e) protected void btnOutput_OnClick(object sender, EventArgs e)
{ {
var _receive = new V_TB_RECEIVE_DETAIL(); var _receive = new V_TB_RECEIVE_DETAIL();
_receive.RecvBillNum = GetQueryValue("ID"); _receive.ErpRecvBillNum = GetQueryValue("ID");
_receive.Site = CurrentUser.UsedDomain; _receive.Site = CurrentUser.UsedDomain;
SCP_RECIVECE_CONTROLLER.Get_V_TB_RECEIVE_DETAIL_List(_receive, (ret) => SCP_RECIVECE_CONTROLLER.Get_V_TB_RECEIVE_DETAIL_List(_receive, (ret) =>
{ {
@ -161,7 +162,7 @@ namespace SCP.WarehouseData
{ {
var _receive = new V_TB_RECEIVE(); var _receive = new V_TB_RECEIVE();
_receive.RecvBillNum = GetQueryValue("ID"); _receive.ErpRecvBillNum = GetQueryValue("ID");
_receive.Site = GetQueryValue("Site"); _receive.Site = GetQueryValue("Site");
if (GetQueryValue("STATE") != null) if (GetQueryValue("STATE") != null)
{ {
@ -203,7 +204,7 @@ namespace SCP.WarehouseData
protected void btnBack_Click(object sender, EventArgs e) protected void btnBack_Click(object sender, EventArgs e)
{ {
var _receive = new V_TB_RECEIVE(); var _receive = new V_TB_RECEIVE();
_receive.RecvBillNum = GetQueryValue("ID"); _receive.ErpRecvBillNum = GetQueryValue("ID");
_receive.Site =GetQueryValue("Site"); _receive.Site =GetQueryValue("Site");
_receive.State = 1; _receive.State = 1;
SCP_RECIVECE_CONTROLLER.Get_V_TB_RECEIVE_List(_receive, (ret) => SCP_RECIVECE_CONTROLLER.Get_V_TB_RECEIVE_List(_receive, (ret) =>
@ -215,14 +216,14 @@ namespace SCP.WarehouseData
{ {
if (_rec != null) if (_rec != null)
{ {
int _count=SCPDB.TB_INVOICE_DETAIL.Where(p => p.RecvBillNum == _rec.RecvBillNum && p.PoBillNum == _rec.PoBillNum).Count(); int _count=SCPDB.TB_INVOICE_DETAIL.Where(p => p.ErpRecvBillNum == _rec.ErpRecvBillNum && p.PoBillNum == _rec.PoBillNum).Count();
if (_count > 0) if (_count > 0)
{ {
Alert.Show("不能取消已经开票!"); Alert.Show("不能取消已经开票!");
return; return;
} }
var rec = SCPDB.TB_RECEIVE_QAD.Where(p => p.RecvBillNum == _rec.RecvBillNum && p.Site == _rec.Site).FirstOrDefault(); var rec = SCPDB.TB_RECEIVE_QAD.Where(p => p.ErpRecvBillNum == _rec.ErpRecvBillNum && p.Site == _rec.Site).FirstOrDefault();
var detail = SCPDB.TB_RECEIVE_DETAIL_QAD.Where(p => p.RecvBillNum == _rec.RecvBillNum && p.Remark == _rec.Site).ToArray(); var detail = SCPDB.TB_RECEIVE_DETAIL_QAD.Where(p => p.ErpRecvBillNum == _rec.ErpRecvBillNum && p.Site == _rec.Site).ToArray();
if (rec != null) if (rec != null)
{ {
rec.State = 0; rec.State = 0;

82
SCP/Views/WarehouseData/SCP_RECEIVE_DETAIL.aspx.designer.cs

@ -7,11 +7,13 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace SCP.WarehouseData { namespace SCP.WarehouseData
{
public partial class SCP_RECEIVE_DETAIL {
public partial class SCP_RECEIVE_DETAIL
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
/// </summary> /// </summary>
@ -20,7 +22,7 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1; protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary> /// <summary>
/// Panel1 控件。 /// Panel1 控件。
/// </summary> /// </summary>
@ -29,7 +31,7 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.Panel Panel1; protected global::FineUI.Panel Panel1;
/// <summary> /// <summary>
/// Toolbar2 控件。 /// Toolbar2 控件。
/// </summary> /// </summary>
@ -38,7 +40,7 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.Toolbar Toolbar2; protected global::FineUI.Toolbar Toolbar2;
/// <summary> /// <summary>
/// Button1 控件。 /// Button1 控件。
/// </summary> /// </summary>
@ -47,7 +49,7 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.Button Button1; protected global::FineUI.Button Button1;
/// <summary> /// <summary>
/// btnDelete 控件。 /// btnDelete 控件。
/// </summary> /// </summary>
@ -56,7 +58,7 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.Button btnDelete; protected global::FineUI.Button btnDelete;
/// <summary> /// <summary>
/// btnBack 控件。 /// btnBack 控件。
/// </summary> /// </summary>
@ -65,7 +67,7 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.Button btnBack; protected global::FineUI.Button btnBack;
/// <summary> /// <summary>
/// F_PO_DETAIL 控件。 /// F_PO_DETAIL 控件。
/// </summary> /// </summary>
@ -74,25 +76,34 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.FormRow F_PO_DETAIL; protected global::FineUI.FormRow F_PO_DETAIL;
/// <summary> /// <summary>
/// txtBillNo 控件。 /// txtState 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.TextBox txtBillNo; protected global::FineUI.TextBox txtState;
/// <summary> /// <summary>
/// txtShipBillNo 控件。 /// txtErpBillNo 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.TextBox txtShipBillNo; protected global::FineUI.TextBox txtErpBillNo;
/// <summary>
/// txtBillNo 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.TextBox txtBillNo;
/// <summary> /// <summary>
/// txtPlanBillNo 控件。 /// txtPlanBillNo 控件。
/// </summary> /// </summary>
@ -101,16 +112,16 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.TextBox txtPlanBillNo; protected global::FineUI.TextBox txtPlanBillNo;
/// <summary> /// <summary>
/// txtState 控件。 /// txtShipBillNo 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.TextBox txtState; protected global::FineUI.TextBox txtShipBillNo;
/// <summary> /// <summary>
/// txtSupplierName 控件。 /// txtSupplierName 控件。
/// </summary> /// </summary>
@ -119,7 +130,7 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.TextBox txtSupplierName; protected global::FineUI.TextBox txtSupplierName;
/// <summary> /// <summary>
/// txtDeliveryAddress 控件。 /// txtDeliveryAddress 控件。
/// </summary> /// </summary>
@ -128,7 +139,7 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.TextBox txtDeliveryAddress; protected global::FineUI.TextBox txtDeliveryAddress;
/// <summary> /// <summary>
/// txtReceiveTime 控件。 /// txtReceiveTime 控件。
/// </summary> /// </summary>
@ -137,7 +148,7 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.TextBox txtReceiveTime; protected global::FineUI.TextBox txtReceiveTime;
/// <summary> /// <summary>
/// txtUserName 控件。 /// txtUserName 控件。
/// </summary> /// </summary>
@ -146,7 +157,7 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.TextBox txtUserName; protected global::FineUI.TextBox txtUserName;
/// <summary> /// <summary>
/// txtMemo 控件。 /// txtMemo 控件。
/// </summary> /// </summary>
@ -155,7 +166,7 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.TextBox txtMemo; protected global::FineUI.TextBox txtMemo;
/// <summary> /// <summary>
/// TextBox2 控件。 /// TextBox2 控件。
/// </summary> /// </summary>
@ -164,7 +175,16 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.Label TextBox2; protected global::FineUI.Label TextBox2;
/// <summary>
/// TextBox3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Label TextBox3;
/// <summary> /// <summary>
/// btnOutput 控件。 /// btnOutput 控件。
/// </summary> /// </summary>
@ -173,7 +193,7 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.Button btnOutput; protected global::FineUI.Button btnOutput;
/// <summary> /// <summary>
/// Grid_V_TB_RECEIVE_DETAIL 控件。 /// Grid_V_TB_RECEIVE_DETAIL 控件。
/// </summary> /// </summary>
@ -182,7 +202,7 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.Grid Grid_V_TB_RECEIVE_DETAIL; protected global::FineUI.Grid Grid_V_TB_RECEIVE_DETAIL;
/// <summary> /// <summary>
/// Window1 控件。 /// Window1 控件。
/// </summary> /// </summary>
@ -191,7 +211,7 @@ namespace SCP.WarehouseData {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUI.Window Window1; protected global::FineUI.Window Window1;
/// <summary> /// <summary>
/// WindowUpload 控件。 /// WindowUpload 控件。
/// </summary> /// </summary>

2
SCP/Views/锦州锦恒/SupplierData/SCP_ASN_DETAIL.aspx

@ -65,7 +65,7 @@
<f:Button runat="server" ID="btnOutputPallet" Text="导出或打印托盘" Icon="Printer" OnClick="btnOutputPallet_Click" Hidden="true"></f:Button> <f:Button runat="server" ID="btnOutputPallet" Text="导出或打印托盘" Icon="Printer" OnClick="btnOutputPallet_Click" Hidden="true"></f:Button>
<f:Button runat="server" ID="btnBarCodeList" Text="显示条码列表" Icon="Layers" OnClick="btnBarCodeList_Click"></f:Button> <f:Button runat="server" ID="btnBarCodeList" Text="显示条码列表" Icon="Layers" OnClick="btnBarCodeList_Click"></f:Button>
<f:Button runat="server" ID="btnOutPut" Text="导出明细" Icon="PageExcel" OnClick="btnOutput_Click"></f:Button> <f:Button runat="server" ID="btnOutPut" Text="导出明细" Icon="PageExcel" OnClick="btnOutput_Click"></f:Button>
<f:TextBox runat = "server" Label = "模板规格" EmptyText = "" ID = "TXT_MarkType" Readonly="true" /> <f:TextBox runat = "server" Label = "模板规格" EmptyText = "" ID = "TXT_MarkType" Readonly="true" Hidden="true" />
</Items> </Items>
</f:Toolbar> </f:Toolbar>
</Items> </Items>

4
SCP/Views/锦州锦恒/SupplierData/SCP_ASN_DETAIL.aspx.cs

@ -478,7 +478,7 @@ namespace SCP.锦州锦恒.SupplierData
protected void btnPrint_Click(object sender, EventArgs e) protected void btnPrint_Click(object sender, EventArgs e)
{ {
string AsnBillNum = Request["AsnBillNum"]; string AsnBillNum = Request["AsnBillNum"];
var str = string.Format("window.open(\"../../Handlers/GenerateReport.ashx?report=SendBill&data=102&type=pdf&filename=SendBill.pdf&AsnBillNum={0}&open=\")", AsnBillNum); var str = string.Format("window.open(\"../../../Handlers/GenerateReport.ashx?report=SendBill&data=102&type=pdf&filename=SendBill.pdf&AsnBillNum={0}&open=\")", AsnBillNum);
PageContext.RegisterStartupScript(str); PageContext.RegisterStartupScript(str);
SCP_BARCODE_CONTROLLER.Save_TB_PRINT_COUNT(new TB_PRINT_COUNT() { BillNo = AsnBillNum, PrintType = (int)PrintType.ASN}); SCP_BARCODE_CONTROLLER.Save_TB_PRINT_COUNT(new TB_PRINT_COUNT() { BillNo = AsnBillNum, PrintType = (int)PrintType.ASN});
} }
@ -551,7 +551,7 @@ namespace SCP.锦州锦恒.SupplierData
string AsnBillNum = Request["AsnBillNum"]; string AsnBillNum = Request["AsnBillNum"];
if (!string.IsNullOrEmpty(AsnBillNum)) if (!string.IsNullOrEmpty(AsnBillNum))
{ {
var str = string.Format("window.open(\"../../Handlers/GenerateReport.ashx?report={1}&data=101&type=pdf&filename=标签.pdf&AsnBillNum={0}&open=\")", AsnBillNum, TXT_MarkType.Text); var str = string.Format("window.open(\"../../../Handlers/GenerateReport.ashx?report={1}&data=101&type=pdf&filename=标签.pdf&AsnBillNum={0}&open=\")", AsnBillNum, TXT_MarkType.Text);
PageContext.RegisterStartupScript(str); PageContext.RegisterStartupScript(str);
} }
SCP_BARCODE_CONTROLLER.Save_TB_PRINT_COUNT(new TB_PRINT_COUNT() { BillNo = AsnBillNum, PrintType = (int)PrintType.BAR_CODE }); SCP_BARCODE_CONTROLLER.Save_TB_PRINT_COUNT(new TB_PRINT_COUNT() { BillNo = AsnBillNum, PrintType = (int)PrintType.BAR_CODE });

2
SCP/Views/锦州锦恒/SupplierData/SCP_SHIP_DETAIL_BARCODE.aspx.cs

@ -122,7 +122,7 @@ namespace SCP.Views.锦州锦恒.SupplierData
} }
} }
var str = string.Format("window.open(\"../../Handlers/GenerateReport.ashx?report={1}&data=101&type=pdf&filename=标签.pdf&Barcode={0}&open=\")", string.Join("_", _ls.ToArray()), TXT_MarkType.Text); var str = string.Format("window.open(\"../../../Handlers/GenerateReport.ashx?report={1}&data=101&type=pdf&filename=标签.pdf&Barcode={0}&open=\")", string.Join("_", _ls.ToArray()), TXT_MarkType.Text);
PageContext.RegisterStartupScript(str); PageContext.RegisterStartupScript(str);
TXT_MarkType.Text = ""; TXT_MarkType.Text = "";
} }

1
SCP/default.aspx

@ -117,7 +117,6 @@
_factory.value = 'JZ1'; _factory.value = 'JZ1';
} }
} }
} }

3
UniApiGroup/Controller/OdbcApiScpController.cs

@ -326,8 +326,9 @@ namespace CK.SCP.GrupUniApi.Controller
qadData.xxscm_inv_date = _invoice.UpdateTime == null ? _invoice.CreateTime.Value.AddDays(1) : _invoice.UpdateTime.Value; qadData.xxscm_inv_date = _invoice.UpdateTime == null ? _invoice.CreateTime.Value.AddDays(1) : _invoice.UpdateTime.Value;
qadData.xxscm_inv_totamt = _invoice.Amount.Value; qadData.xxscm_inv_totamt = _invoice.Amount.Value;
qadData.xxscm_inv_tottax = _invoice.Total.Value; qadData.xxscm_inv_tottax = _invoice.Total.Value;
qadData.xxscm_inv_totdiscount = _invoice.ContractPrice == null ? 0 : _invoice.ContractPrice.Value; qadData.xxscm_inv_totdiscount = _invoice.DiscountPrice == null ? 0 : _invoice.DiscountPrice.Value;
qadData.xxscm_inv_tottaxvar = _invoice.BlancePrice == null ? 0 : _invoice.BlancePrice.Value; qadData.xxscm_inv_tottaxvar = _invoice.BlancePrice == null ? 0 : _invoice.BlancePrice.Value;
qadData.xxscm_inv_totclaim= _invoice.ContractPrice == null ? 0 : _invoice.ContractPrice.Value;
qadData.xxscm_inv_extend1 = _invoice.Extend1 == null ? 0 : _invoice.Extend1.Value; qadData.xxscm_inv_extend1 = _invoice.Extend1 == null ? 0 : _invoice.Extend1.Value;
qadData.xxscm_inv_extend2 = _invoice.Extend2 == null ? 0 : _invoice.Extend2.Value; qadData.xxscm_inv_extend2 = _invoice.Extend2 == null ? 0 : _invoice.Extend2.Value;
qadDataList.Add(qadData); qadDataList.Add(qadData);

Loading…
Cancel
Save