112
This commit is contained in:
@@ -167,7 +167,7 @@ namespace Pilot_KD_Parino.Sal_Order
|
|||||||
{
|
{
|
||||||
var beiHuoName3 = beiHuoName2[0]["Name"].ToString();
|
var beiHuoName3 = beiHuoName2[0]["Name"].ToString();
|
||||||
|
|
||||||
string sqltemp1 = $@"/*dialect*/ SELECT FUseOrgId,a.FNUMBER,b.FNAME,a.FSUPPLIERID FROM T_BD_SUPPLIER a
|
string sqltemp1 = $@"/*dialect*/ SELECT FUseOrgId,a.FNUMBER,b.FNAME,a.FSUPPLIERID,a.F_BHZZ FROM T_BD_SUPPLIER a
|
||||||
LEFT JOIN T_BD_SUPPLIER_L b ON a.FSUPPLIERID=b.FSUPPLIERID
|
LEFT JOIN T_BD_SUPPLIER_L b ON a.FSUPPLIERID=b.FSUPPLIERID
|
||||||
WHERE FUseOrgId={SaleOrgId_Id} AND FNAME LIKE '%{beiHuoName3}%' ";
|
WHERE FUseOrgId={SaleOrgId_Id} AND FNAME LIKE '%{beiHuoName3}%' ";
|
||||||
var supplierList = DBServiceHelper.ExecuteDynamicObject(this.Context, sqltemp1, null, null, CommandType.Text, null);
|
var supplierList = DBServiceHelper.ExecuteDynamicObject(this.Context, sqltemp1, null, null, CommandType.Text, null);
|
||||||
@@ -177,13 +177,13 @@ namespace Pilot_KD_Parino.Sal_Order
|
|||||||
DynamicObject supplierObj = null;//.Select(t => t["FSUPPLIERID"].ToString())
|
DynamicObject supplierObj = null;//.Select(t => t["FSUPPLIERID"].ToString())
|
||||||
if (beiHuoName3 == "珠海兴诺")
|
if (beiHuoName3 == "珠海兴诺")
|
||||||
{
|
{
|
||||||
supplierObj = supplierList.Where(t => t["FNAME"].ToString() == "珠海兴诺能源技术有限公司").FirstOrDefault();
|
supplierObj = supplierList.Where(t => t["F_BHZZ"].ToString() == "珠海兴诺能源技术有限公司").FirstOrDefault();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if (beiHuoName3 == "珠海派诺")
|
if (beiHuoName3 == "珠海派诺")
|
||||||
{
|
{
|
||||||
supplierObj = supplierList.Where(t => t["FNAME"].ToString() == "珠海派诺科技股份有限公司").FirstOrDefault();
|
supplierObj = supplierList.Where(t => t["F_BHZZ"].ToString() == "珠海派诺科技股份有限公司").FirstOrDefault();
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -281,9 +281,9 @@ namespace Pilot_KD_Parino.Sal_Order
|
|||||||
jieSuanBiBie = 7;
|
jieSuanBiBie = 7;
|
||||||
beiHuoName3 = "派诺科技(香港)有限公司";
|
beiHuoName3 = "派诺科技(香港)有限公司";
|
||||||
}
|
}
|
||||||
string sqltemp1 = $@"/*dialect*/ SELECT FUseOrgId,a.FNUMBER,b.FNAME,a.FCUSTID FROM T_BD_CUSTOMER a
|
string sqltemp1 = $@"/*dialect*/ SELECT FUseOrgId,a.FNUMBER,b.FNAME,a.FCUSTID,a.F_BHZZ FROM T_BD_CUSTOMER a
|
||||||
LEFT JOIN T_BD_CUSTOMER_L b ON a.FCUSTID=b.FCUSTID
|
LEFT JOIN T_BD_CUSTOMER_L b ON a.FCUSTID=b.FCUSTID
|
||||||
WHERE FUseOrgId={SupplierId_Id} AND FNAME LIKE '%{beiHuoName3}%' ";
|
WHERE FUseOrgId={SupplierId_Id} AND F_BHZZ LIKE '%{beiHuoName3}%' ";
|
||||||
//Logger.Error("客户组织",sqltemp1, new Exception());
|
//Logger.Error("客户组织",sqltemp1, new Exception());
|
||||||
var keHuList = DBServiceHelper.ExecuteDynamicObject(this.Context, sqltemp1, null, null, CommandType.Text, null);
|
var keHuList = DBServiceHelper.ExecuteDynamicObject(this.Context, sqltemp1, null, null, CommandType.Text, null);
|
||||||
|
|
||||||
@@ -293,13 +293,13 @@ namespace Pilot_KD_Parino.Sal_Order
|
|||||||
DynamicObject supplierObj = null;//.Select(t => t["FSUPPLIERID"].ToString())
|
DynamicObject supplierObj = null;//.Select(t => t["FSUPPLIERID"].ToString())
|
||||||
if (beiHuoName3 == "珠海兴诺")
|
if (beiHuoName3 == "珠海兴诺")
|
||||||
{
|
{
|
||||||
supplierObj = keHuList.Where(t => t["FNAME"].ToString() == "珠海兴诺国际能源有限公司").FirstOrDefault();
|
supplierObj = keHuList.Where(t => t["F_BHZZ"].ToString() == "珠海兴诺国际能源有限公司").FirstOrDefault();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if (beiHuoName3 == "珠海派诺")
|
if (beiHuoName3 == "珠海派诺")
|
||||||
{
|
{
|
||||||
supplierObj = keHuList.Where(t => t["FNAME"].ToString() == "珠海派诺科技股份有限公司").FirstOrDefault();
|
supplierObj = keHuList.Where(t => t["F_BHZZ"].ToString() == "珠海派诺科技股份有限公司").FirstOrDefault();
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user