private void CalcShipPrice(SOInfo soInfo) { if (soInfo.ShipTypeSysNo != AppConst.IntNull) { //if (soInfo.AdwaysInfo != null && !soInfo.AdwaysInfo.AdwaysID.Equals(AppConst.StringNull) && soInfo.AdwaysInfo.AdwaysID.Length > 0) //{ // soInfo.ShipPrice = 0m; //} //else //{ // soInfo.ShipPrice = Util.ToMoney(ASPManager.GetInstance().GetShipPrice(soInfo.GetTotalWeight(), soInfo.SOAmt, soInfo.ShipTypeSysNo, soInfo.ReceiveAreaSysNo)); //} soInfo.ShipPrice = Util.ToMoney(ASPManager.GetInstance().GetShipPrice(soInfo.GetTotalWeight(), soInfo.SOAmt, soInfo.ShipTypeSysNo, soInfo.ReceiveAreaSysNo)); CustomerInfo oCustomer = CustomerManager.GetInstance().Load(soInfo.CustomerSysNo); if (oCustomer.CustomerType != (int)AppEnum.CustomerType.Personal) { return; } //ORS�̳ǿ�����ͷ�Χ�ڵģ��������ݣ��Ͼ������ݣ����ݣ��Ϻ�����������100Ԫ���˷ѣ������50Ԫ //�����������Ϻ�����������200Ԫ���˷ѣ������50Ԫ��EMS��˳���ݲ����˷ѡ� AreaInfo areaInfo = ASPManager.GetInstance().LoadArea(soInfo.ReceiveAreaSysNo); if ((soInfo.ShipTypeSysNo == 1 || soInfo.ShipTypeSysNo == 8 || soInfo.ShipTypeSysNo == 9 || soInfo.ShipTypeSysNo == 10 || soInfo.ShipTypeSysNo == 11 || soInfo.ShipTypeSysNo == 13 || soInfo.ShipTypeSysNo == 17) && areaInfo.LocalCode < 5 && soInfo.SOAmt >= 100) //ORS�̳ǿ��(���Ϻ�����)�����������100 { if (soInfo.ShipPrice <= 50) { soInfo.ShipPrice = 0m; } else { soInfo.ShipPrice = soInfo.ShipPrice - 50; } } else if (soInfo.SOAmt >= 200 && soInfo.ShipTypeSysNo != 2 && soInfo.ShipTypeSysNo != 12) { if (soInfo.ShipPrice <= 50) { soInfo.ShipPrice = 0m; } else { soInfo.ShipPrice = soInfo.ShipPrice - 50; } } //if (soInfo.SOAmt >= 50 && soInfo.ShipTypeSysNo != 2) //����������50������EMS //{ // if (soInfo.ShipPrice <= 50) // { // soInfo.ShipPrice = 0m; // } // else // { // soInfo.ShipPrice = soInfo.ShipPrice - 50; // } //} } else soInfo.ShipPrice = 0m; }
private decimal CalcShipPriceTemp(SOInfo soInfo) { return Util.ToMoney(ASPManager.GetInstance().GetShipPrice(soInfo.GetTotalWeight(), soInfo.SOAmt, soInfo.ShipTypeSysNo, soInfo.ReceiveAreaSysNo)); }
public decimal CalcShipPriceOrigin(SOInfo soInfo) { if (soInfo.ShipTypeSysNo != AppConst.IntNull) { return Util.ToMoney(ASPManager.GetInstance().GetShipPrice(soInfo.GetTotalWeight(), soInfo.SOAmt, soInfo.ShipTypeSysNo, soInfo.ReceiveAreaSysNo)); } else return 0m; }