散件出库
This commit is contained in:
@@ -599,7 +599,7 @@ namespace BLL
|
||||
}
|
||||
|
||||
|
||||
public static string GetDataInCusBillCode(string projectid, string unitcode,string typeString)
|
||||
public static string GetDataInCusBillCode(string projectid, string unitcode,string typeString,string unitWorkCode="",string Category = "")
|
||||
{
|
||||
if (typeString == TwConst.TypeInt.退料入库.ToString())
|
||||
{
|
||||
@@ -614,6 +614,29 @@ namespace BLL
|
||||
cusBillCode = cusBillCode + (queryAllresult + 1).ToString().PadLeft(2, '0');
|
||||
return cusBillCode;
|
||||
}
|
||||
else if (typeString == TwConst.TypeInt.散件出库.ToString())
|
||||
{
|
||||
//生成规则是20240919-unitcode-AP-GR01
|
||||
string cusBillCode = string.Format("{0:yyyyMMdd}", DateTime.Now) + unitcode+"-" + unitWorkCode +"-";
|
||||
var queryAll = new Tw_InOutMasterOutput()
|
||||
{
|
||||
ProjectId = projectid,
|
||||
CusBillCode = cusBillCode,
|
||||
Category = Category == TwConst.Category.管段.ToString() ? (int)TwConst.Category.管段 : (int)TwConst.Category.管件
|
||||
|
||||
};
|
||||
var queryAllresult = GetModle(queryAll).Count();
|
||||
if (Category == TwConst.Category.管段.ToString())
|
||||
{
|
||||
cusBillCode = cusBillCode + (queryAllresult + 1).ToString().PadLeft(2, '0') + "-GI-P01";
|
||||
}
|
||||
else
|
||||
{
|
||||
cusBillCode = cusBillCode + (queryAllresult + 1).ToString().PadLeft(2, '0') + "-GI-PF01";
|
||||
|
||||
}
|
||||
return cusBillCode;
|
||||
}
|
||||
else
|
||||
{
|
||||
//生成规则是20240919-unitcode-AP-GR01
|
||||
|
||||
Reference in New Issue
Block a user