Browse Source

托盘管理

master
lvzb 4 years ago
parent
commit
64c180b977
  1. 4
      Controller/SCP_BARCODE_CONTROLLER.cs
  2. 9
      Controller/SCP_V_TA_VEND_PART_CONTROLLER.cs
  3. 3
      Models/ScpCache.cs
  4. 6
      Models/ScpEntity/V_TA_VEND_PART.cs
  5. 5
      SCP/Views/BasicData/SCP_TA_VEND_PART.aspx.cs

4
Controller/SCP_BARCODE_CONTROLLER.cs

@ -1203,7 +1203,7 @@ namespace CK.SCP.Controller
private static string GetLastPalletsBarCode(string partcode, string batch, int lastnum)
{
var barcode = "G.";
var barcode = string.Empty;
barcode += partcode + ScpCache.Config.;
if (ScpCache.Config.)
@ -1214,7 +1214,7 @@ namespace CK.SCP.Controller
{
barcode += batch + ScpCache.Config.;
}
barcode += lastnum.ToString(ScpCache.Config.ÌõÂëÐòÁкŸñʽ);
barcode += lastnum.ToString(ScpCache.Config.ÍÐÂëÐòÁкŸñʽ);
return barcode;
}
private static string GetLastSmallBarCode(string partcode, string batch, int lastnum)

9
Controller/SCP_V_TA_VEND_PART_CONTROLLER.cs

@ -71,7 +71,14 @@ namespace CK.SCP.Controller
{
q = q.Where(p => p.PartDesc.Contains(p_entity.PartDesc));
}
if (p_entity.UserInAddress != null && p_entity.UserInAddress.Count > 0)
{
q = q.Where(p => p_entity.UserInAddress.Contains(p.Site));
}
if (p_entity.UserInVendIds != null && p_entity.UserInVendIds.Count > 0)
{
q = q.Where(p => p_entity.UserInVendIds.Contains(p.VendId));
}
_ret.State = ReturnStatus.Succeed;
_ret.Result = q;

3
Models/ScpCache.cs

@ -313,7 +313,8 @@ namespace CK.SCP.Models
public bool { get; set; } = false;
public string { get; set; } = "1";
public string { get; set; } = "000000";
public string { get; set; } = "000000";
public string { get; set; } = "700000";
public string { get; set; } = "600000";
public bool { get; set; } = false;
}

6
Models/ScpEntity/V_TA_VEND_PART.cs

@ -36,5 +36,11 @@ namespace CK.SCP.Models.ScpEntity
public string ProjectId { get; set; }
[NotMapped]
public string PartDesc { get; set; }
[NotMapped]
public List<string> UserInAddress { set; get; }
[NotMapped]
public List<string> UserInVendIds { set; get; }
}
}

5
SCP/Views/BasicData/SCP_TA_VEND_PART.aspx.cs

@ -44,6 +44,11 @@ namespace SCP.Views.BasicData
_entity.VendId = txtVendId.Text;
_entity.PartCode = txtPartCode.Text;
_entity.ProjectId = txtVendId.Text;
if (!CurrentUser.RoleList.Contains("管理员"))
{
_entity.UserInAddress = CurrentUser.FactoryList;
_entity.UserInVendIds = CurrentUser.VenderList;
}
SCP_V_TA_VEND_PART_CONTROLLER.Get_V_TA_VEND_PART_List(_entity, (rs) => {
if (rs.State == ReturnStatus.Succeed)
{

Loading…
Cancel
Save