Exemple #1
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>";
            }
        }
Exemple #2
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 #3
0
 void LoadData()
 {
     mod = bllf.GetModel(1);
     if (mod.typID == 1)
     {
         RadOne.Checked = true;
     }
     if (mod.typID == 2)
     {
         RadTwo.Checked = true;
         txtTotal.Text  = mod.TotalPrice.ToString();
         txtLow.Text    = mod.spec.ToString();
         txtFee.Text    = mod.Fee.ToString();
     }
     if (mod.typID == 3)
     {
         Rad3.Checked      = true;
         txtMasterFee.Text = mod.Fee.ToString();
     }
 }