|
|
|
@ -6680,9 +6680,8 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
|
|
|
|
|
/// <param name="AMOUNT">金额</param>
|
|
|
|
|
/// <param name="QUANTITY">数量</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public static ch_fee_md getChFee(string USERID, string BSNO, string CUSTOMERNAME, int FEETYPE, string FEENAME, decimal AMOUNT, string UNIT, decimal QUANTITY = 1,string remark="",string sale="")
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public static ch_fee_md getChFee(string USERID, string BSNO, string CUSTOMERNAME, int FEETYPE, string FEENAME, decimal AMOUNT, string UNIT, decimal QUANTITY = 1, string SALE = "", string remark = "")
|
|
|
|
|
{
|
|
|
|
|
var result = getNewChfee();
|
|
|
|
|
result.BSNO = BSNO;
|
|
|
|
|
result.CUSTOMERNAME = CUSTOMERNAME;
|
|
|
|
@ -6703,8 +6702,8 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
|
|
|
|
|
result.EXCHANGERATE = 1M;
|
|
|
|
|
|
|
|
|
|
result.UNIT = UNIT;
|
|
|
|
|
|
|
|
|
|
result.REMARK = remark;
|
|
|
|
|
result.MANAGER = sale;
|
|
|
|
|
//
|
|
|
|
|
CommonDataContext cdc = new CommonDataContext();
|
|
|
|
|
var codefeelist = cdc.code_fee.Where(x => 1 == 1).ToList();
|
|
|
|
@ -6765,7 +6764,7 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
|
|
|
|
|
{
|
|
|
|
|
if (AMOUNT != 0)
|
|
|
|
|
{
|
|
|
|
|
var newfee = getChFee(USERID, BSNO, CUSTOMERNAME, FEETYPE, FEENAME, AMOUNT,UNIT, QUANTITY,"",SALE);
|
|
|
|
|
var newfee = getChFee(USERID, BSNO, CUSTOMERNAME, FEETYPE, FEENAME, AMOUNT,UNIT, QUANTITY);
|
|
|
|
|
|
|
|
|
|
CommonDataContext cdc = new CommonDataContext();
|
|
|
|
|
|
|
|
|
|