|
|
|
@ -6680,7 +6680,7 @@ 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="")
|
|
|
|
|
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="")
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
var result = getNewChfee();
|
|
|
|
@ -6704,6 +6704,7 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
|
|
|
|
|
|
|
|
|
|
result.UNIT = UNIT;
|
|
|
|
|
result.REMARK = remark;
|
|
|
|
|
result.MANAGER = sale;
|
|
|
|
|
//
|
|
|
|
|
CommonDataContext cdc = new CommonDataContext();
|
|
|
|
|
var codefeelist = cdc.code_fee.Where(x => 1 == 1).ToList();
|
|
|
|
@ -6756,7 +6757,7 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static DBResult MakeNewFee(string USERID, string BSNO, string CUSTOMERNAME, string CUSTOMERTYPE, int FEETYPE, string FEENAME, decimal AMOUNT,string UNIT, decimal QUANTITY = 1)
|
|
|
|
|
public static DBResult MakeNewFee(string USERID, string BSNO, string CUSTOMERNAME, string CUSTOMERTYPE, int FEETYPE, string FEENAME, decimal AMOUNT,string UNIT, decimal QUANTITY = 1,string SALE="")
|
|
|
|
|
{
|
|
|
|
|
var result = new DBResult();
|
|
|
|
|
result.OK("");
|
|
|
|
@ -6764,7 +6765,7 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
|
|
|
|
|
{
|
|
|
|
|
if (AMOUNT != 0)
|
|
|
|
|
{
|
|
|
|
|
var newfee = getChFee(USERID, BSNO, CUSTOMERNAME, FEETYPE, FEENAME, AMOUNT,UNIT, QUANTITY);
|
|
|
|
|
var newfee = getChFee(USERID, BSNO, CUSTOMERNAME, FEETYPE, FEENAME, AMOUNT,UNIT, QUANTITY,"",SALE);
|
|
|
|
|
|
|
|
|
|
CommonDataContext cdc = new CommonDataContext();
|
|
|
|
|
|
|
|
|
|