@ -476,7 +476,7 @@ namespace DSWeb.Areas.Account.Controllers
var exrateList = JsonConvert . Deserialize < List < ChFeeExrate > > ( storeCurrExrate ) ;
var exrateList = JsonConvert . Deserialize < List < ChFeeExrate > > ( storeCurrExrate ) ;
if ( islist ) {
if ( islist ) {
var bodylist = ChinvoiceapplicationDAL . GetFeeDetailList ( feesql + " and '代理'+FEENAME NOT IN (Select GOODNAME from code_goods_inv) " , duino , Convert . ToString ( Session [ "USERID" ] ) , Co okieConfig. GetCookie_UserCode ( Request ) , Convert . ToString ( Session [ "COMPANYID" ] ) ) ;
var bodylist = ChinvoiceapplicationDAL . GetFeeDetailList ( feesql + " and '代理'+FEENAME NOT IN (Select GOODNAME from code_goods_inv) " , duino , Convert . ToString ( Session [ "USERID" ] ) , Co nvert. ToString ( Session [ "SHOWNAME" ] ) , Convert . ToString ( Session [ "COMPANYID" ] ) ) ;
if ( bodylist . Count ! = 0 ) {
if ( bodylist . Count ! = 0 ) {
var feenamelist = "" ;
var feenamelist = "" ;
if ( bodylist ! = null )
if ( bodylist ! = null )
@ -506,7 +506,7 @@ namespace DSWeb.Areas.Account.Controllers
if ( exrateList . Count = = 0 )
if ( exrateList . Count = = 0 )
{
{
var modb = new ModelObjectDB ( ) ;
var modb = new ModelObjectDB ( ) ;
DBResult result = ChinvoiceapplicationDAL . AddBill ( billno , duino , billcust , billcurr , feesql , exrateList , Convert . ToString ( Session [ "COMPANYID" ] ) , islist , GID , headData , custgroup , Convert . ToString ( Session [ "USERID" ] ) );
DBResult result = ChinvoiceapplicationDAL . AddBill ( billno , duino , billcust , billcurr , feesql , exrateList , Convert . ToString ( Session [ "COMPANYID" ] ) , islist , GID , headData , custgroup , Convert . ToString ( Session [ "USERID" ] ) , Convert . ToString ( Session [ "SHOWNAME" ] ) );
if ( result . Success ) { ChinvoiceapplicationDAL . p_update_Amount ( billno , GID ) ; }
if ( result . Success ) { ChinvoiceapplicationDAL . p_update_Amount ( billno , GID ) ; }
var jsonRespose = new JsonResponse { Success = result . Success , Message = result . Message } ;
var jsonRespose = new JsonResponse { Success = result . Success , Message = result . Message } ;
@ -550,7 +550,7 @@ namespace DSWeb.Areas.Account.Controllers
var modb = new ModelObjectDB ( ) ;
var modb = new ModelObjectDB ( ) ;
DBResult result = ChinvoiceapplicationDAL . AddBill ( billno , duino , billcust , billcurr , feesql , exrateList , Convert . ToString ( Session [ "COMPANYID" ] ) , islist , GID , headData , false , Convert . ToString ( Session [ "USERID" ] ) );
DBResult result = ChinvoiceapplicationDAL . AddBill ( billno , duino , billcust , billcurr , feesql , exrateList , Convert . ToString ( Session [ "COMPANYID" ] ) , islist , GID , headData , false , Convert . ToString ( Session [ "USERID" ] ) , Convert . ToString ( Session [ "SHOWNAME" ] ) );
if ( result . Success ) { ChinvoiceapplicationDAL . p_update_Amount ( billno , GID ) ; }
if ( result . Success ) { ChinvoiceapplicationDAL . p_update_Amount ( billno , GID ) ; }
var jsonRespose = new JsonResponse { Success = result . Success , Message = result . Message } ;
var jsonRespose = new JsonResponse { Success = result . Success , Message = result . Message } ;
@ -638,7 +638,7 @@ namespace DSWeb.Areas.Account.Controllers
if ( billcurr = = "" | | exrateList . Count = = 0 )
if ( billcurr = = "" | | exrateList . Count = = 0 )
{
{
var modb = new ModelObjectDB ( ) ;
var modb = new ModelObjectDB ( ) ;
DBResult result = ChinvoiceapplicationDAL . AddBill ( billno , duino , billcust , billcurr , feesql , exrateList , Convert . ToString ( Session [ "COMPANYID" ] ) , islist , GID , headData , custgroup , Convert . ToString ( Session [ "USERID" ] ) );
DBResult result = ChinvoiceapplicationDAL . AddBill ( billno , duino , billcust , billcurr , feesql , exrateList , Convert . ToString ( Session [ "COMPANYID" ] ) , islist , GID , headData , custgroup , Convert . ToString ( Session [ "USERID" ] ) , Convert . ToString ( Session [ "SHOWNAME" ] ) );
if ( result . Success ) { ChinvoiceapplicationDAL . p_update_AmountNew ( billno , GID , Convert . ToString ( Session [ "DEPTNAME" ] ) . ToString ( ) . Trim ( ) , Convert . ToString ( Session [ "COMPANYID" ] ) ) ; }
if ( result . Success ) { ChinvoiceapplicationDAL . p_update_AmountNew ( billno , GID , Convert . ToString ( Session [ "DEPTNAME" ] ) . ToString ( ) . Trim ( ) , Convert . ToString ( Session [ "COMPANYID" ] ) ) ; }
var jsonRespose = new JsonResponse { Success = result . Success , Message = result . Message } ;
var jsonRespose = new JsonResponse { Success = result . Success , Message = result . Message } ;
@ -682,7 +682,7 @@ namespace DSWeb.Areas.Account.Controllers
var modb = new ModelObjectDB ( ) ;
var modb = new ModelObjectDB ( ) ;
DBResult result = ChinvoiceapplicationDAL . AddBill ( billno , duino , billcust , billcurr , feesql , exrateList , Convert . ToString ( Session [ "COMPANYID" ] ) , islist , GID , headData , false , Convert . ToString ( Session [ "USERID" ] ) );
DBResult result = ChinvoiceapplicationDAL . AddBill ( billno , duino , billcust , billcurr , feesql , exrateList , Convert . ToString ( Session [ "COMPANYID" ] ) , islist , GID , headData , false , Convert . ToString ( Session [ "USERID" ] ) , Convert . ToString ( Session [ "SHOWNAME" ] ) );
if ( result . Success ) { ChinvoiceapplicationDAL . p_update_AmountNew ( billno , GID , Convert . ToString ( Session [ "DEPTNAME" ] ) . ToString ( ) . Trim ( ) , Convert . ToString ( Session [ "COMPANYID" ] ) ) ; }
if ( result . Success ) { ChinvoiceapplicationDAL . p_update_AmountNew ( billno , GID , Convert . ToString ( Session [ "DEPTNAME" ] ) . ToString ( ) . Trim ( ) , Convert . ToString ( Session [ "COMPANYID" ] ) ) ; }
var jsonRespose = new JsonResponse { Success = result . Success , Message = result . Message } ;
var jsonRespose = new JsonResponse { Success = result . Success , Message = result . Message } ;