Exemple #1
0
        void LoadFee()
        {
            decimal HtmlFee = 0M;

            Ltf.Model.Freight mdl  = new Ltf.Model.Freight();
            Ltf.BLL.Freight   bllf = new Ltf.BLL.Freight();

            mdl = bllf.GetModel(1);
            if (mdl != null)
            {
                int typeID = mdl.typID;
                if (typeID == 1)
                {
                    HtmlFee = 0;
                }
                else if (typeID == 2)
                {
                    HtmlFee    = mdl.Fee;
                    TwoTypeFee = mdl.TotalPrice;
                }
                else if (typeID == 3)
                {
                    HtmlFee = mdl.Fee;
                }
                Fee           = HtmlFee.ToString();
                hideFee.Value = typeID.ToString();
            }
        }
Exemple #2
0
        void LoadFee()
        {
            Ltf.Model.Freight mdl  = new Ltf.Model.Freight();
            Ltf.BLL.Freight   bllf = new Ltf.BLL.Freight();

            mdl = bllf.GetModel(1);
            if (mdl != null)
            {
                HtmlFee = "<span style=\"color: #e53333;\">";
                int typeID = mdl.typID;
                if (typeID == 1)
                {
                    HtmlFee += "全店免運費";
                }
                else if (typeID == 2)
                {
                    HtmlFee += mdl.TotalPrice + "元(含)以上免運費," + mdl.spec + "元以下收運費" + mdl.Fee + "元";
                }
                else if (typeID == 3)
                {
                    HtmlFee += "每筆訂單固定收取運費" + mdl.Fee + "元";
                }
                HtmlFee += "</span>";
            }
        }