@ -317,5 +317,7 @@ namespace CK.SCP.Models
public string 托码序列号格式 { get; set; } = "700000";
public string 小包装条码序列号格式 { get; set; } = "600000";
public bool 负数发票 { get; set; } = false;
public bool 开票数量限制 { get; set; } = true;
public bool 数据中心接口 { get; set; } = true;
}
@ -13,6 +13,7 @@ using System.Data;
using CK.SCP.Models.ScpEntity.ExcelImportEntity;
using CK.SCP.Models.Enums;
using CK.SCP.Common;
using CK.SCP.Models;
using System.Text;
using CK.SCP.Models.ScpEntity.ExcelExportEnttity;
@ -280,7 +281,7 @@ namespace SCP.PlanData
Alert.Show(string.Join("<br>", checkret.MessageList));
return;
if (CurrentUser.ConfigList.ContainsKey("数据中心接口"))
if (ScpCache.Config.数据中心接口)
{
saveret = SCP_DC_UNI_CONTROLLER.WritePo(list, CurrentUser.FactoryList[0], CurrentUser.Name, DateTime.Now, p_modtype, CurrentUser.SubSiteList[0], CurrentUser.ChineseName, CurrentUser.CellPhone);
@ -33,7 +33,7 @@
<f:Grid ID="Grid_SCP_INVOICE_CREATE" runat="server"
ShowBorder ="true"
ShowHeader="true"
PageSize="1000"
PageSize="200"
BoxFlex="1"
CssClass="maingrid"
DataKeyNames="UID,RecvBillNum,PoLine,PartCode,Batch,Qty,DockCode,Remark,CreateTime,CreateUser,IsDeleted,GUID,AsnBillNum,Site,VendId,ShipTime,OperName,PartDesc1,State,PoBillNum,VendName,Site_Desc,PoUnit,LocUnit,Price,VendBatch,Currency,BillType_DESC,ErpRecvBillNum,PurCost,StdCost,SubSite"
@ -48,12 +48,10 @@
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged"
runat="server">
<f:ListItem Text="10" Value="10" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="50" Value="50" />
<f:ListItem Text="100" Value="100" />
<f:ListItem Text="200" Value="200" />
<f:ListItem Text="1000" Value="1000" />
<f:ListItem Text="5000" Value="5000" />
</f:DropDownList>
</PageItems>
<Columns>
@ -73,9 +73,7 @@ namespace SCP.SupplierData
public void LoadData()
// 每页记录数
Grid_V_TB_RECEIVE_LIST.PageSize = ConfigHelper.PageSize;
ddlGridPageSize.SelectedValue = ConfigHelper.PageSize.ToString();
BindData();
private void SearchData(Action<IQueryable<V_TB_RECEIVE_LIST>> p_action)
@ -316,7 +314,7 @@ namespace SCP.SupplierData
if (IdList.Count > 10000)
if (IdList.Count > 1000&&ScpCache.Config.开票数量限制)
Alert.Show("选择发票条数"+ IdList.Count + "超过1000条,发票允许条数!");