合同号更新
This commit is contained in:
parent
61b915d793
commit
5fc411f8db
@ -75,6 +75,7 @@ namespace Pilot_KD_Parino.Sal_Order
|
||||
|
||||
//获取纸质合同号
|
||||
String F_contractnumber = FEntity["F_contractnumber"].ToString();
|
||||
string yuanF_contractnumber = F_contractnumber;
|
||||
int dashPosition;
|
||||
if (F_contractnumber.Contains("-TH"))
|
||||
{
|
||||
@ -113,19 +114,25 @@ namespace Pilot_KD_Parino.Sal_Order
|
||||
|
||||
int IFnumber = sqlDS[0]["FNUMBER"].Long2Int();
|
||||
|
||||
if (IFnumber != 0 && !F_Returntype.IsNullOrEmpty() && !F_contractnumber.ToString().Contains("TH") && !F_contractnumber.ToString().Contains("HH"))
|
||||
if (IFnumber != 0 && !F_Returntype.IsNullOrEmpty())
|
||||
{
|
||||
F_contractnumber1 = F_contractnumber.ToString() + '-' + F_Returntype + '0' + number.ToString();
|
||||
F_contractnumber1 = yuanF_contractnumber.ToString() + '-' + F_Returntype + '0' + number.ToString();
|
||||
FEntity["F_contractnumber"] = F_contractnumber1;
|
||||
break;
|
||||
}
|
||||
else if (!F_Returntype.IsNullOrEmpty() && !F_contractnumber.ToString().Contains("TH") && !F_contractnumber.ToString().Contains("HH"))
|
||||
else if (!F_Returntype.IsNullOrEmpty())
|
||||
{
|
||||
F_contractnumber1 = F_contractnumber.ToString() + '-' + F_Returntype + '0' + '1';
|
||||
F_contractnumber1 = yuanF_contractnumber.ToString() + '-' + F_Returntype + '0' + '1';
|
||||
|
||||
FEntity["F_contractnumber"] = F_contractnumber1;
|
||||
break;
|
||||
}
|
||||
//else if (IFnumber != 0 && !F_Returntype.IsNullOrEmpty())
|
||||
//{
|
||||
|
||||
//}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -162,6 +169,7 @@ namespace Pilot_KD_Parino.Sal_Order
|
||||
|
||||
//获取纸质合同号
|
||||
String F_contractnumber = FEntity["F_contractnumber"].ToString();
|
||||
string yuanF_contractnumber = F_contractnumber;
|
||||
int dashPosition;
|
||||
if (F_contractnumber.Contains("-TH"))
|
||||
{
|
||||
@ -201,15 +209,15 @@ namespace Pilot_KD_Parino.Sal_Order
|
||||
|
||||
int IFnumber = sqlDS[0]["FNUMBER"].Long2Int();
|
||||
|
||||
if (IFnumber != 0 && !F_Returntype.IsNullOrEmpty() && !F_contractnumber.ToString().Contains("TH") && !F_contractnumber.ToString().Contains("HH"))
|
||||
if (IFnumber != 0 && !F_Returntype.IsNullOrEmpty())
|
||||
{
|
||||
F_contractnumber1 = F_contractnumber.ToString() + '-' + F_Returntype + '0' + number.ToString();
|
||||
F_contractnumber1 = yuanF_contractnumber.ToString() + '-' + F_Returntype + '0' + number.ToString();
|
||||
FEntity["F_contractnumber"]= F_contractnumber1;
|
||||
break;
|
||||
}
|
||||
else if (!F_Returntype.IsNullOrEmpty() && !F_contractnumber.ToString().Contains("TH") && !F_contractnumber.ToString().Contains("HH"))
|
||||
else if (!F_Returntype.IsNullOrEmpty() )
|
||||
{
|
||||
F_contractnumber1 = F_contractnumber.ToString() + '-' + F_Returntype + '0' + '1';
|
||||
F_contractnumber1 = yuanF_contractnumber.ToString() + '-' + F_Returntype + '0' + '1';
|
||||
FEntity["F_contractnumber"] = F_contractnumber1;
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user