Example #1
0
        /// <summary>
        /// 获得系统设置图片和变量
        /// </summary>
        /// <param name="strPathNo">获得数据编号</param>
        /// <returns></returns>
        public static string GetSysImg(string strPathNo)
        {
            OnLoadSystemCommonData onLoadSystemCommonData = new OnLoadSystemCommonData();

            onLoadSystemCommonData.GetSysControlList();

            string strImg = "";

            if (CommonData.SysControlList.Any())
            {
                var qList = CommonData.SysControlList.FirstOrDefault();

                switch (strPathNo)
                {
                case "1":
                    strImg = qList.ImgPath1;
                    break;

                case "2":
                    strImg = qList.ImgPath2;
                    break;

                case "3":
                    strImg = qList.ImgPath3;
                    break;

                case "4":
                    strImg = qList.ImgPath4;
                    break;

                case "5":
                    strImg = qList.ImgPath5;
                    break;
                }
            }

            return(strImg);
        }
Example #2
0
        /// <summary>
        ///  加载所有系统数据,所有系统List
        /// </summary>
        public static void GetAllInfoList()
        {
            OnLoadSystemCommonData onLoad = new OnLoadSystemCommonData();

            //User List
            onLoad.GetUserList();
            //Shift Code
            onLoad.GetShiftCodeList();
            //System Configuration
            onLoad.GetSysConfigList();
            //User Maintenance
            onLoad.GetUsrMaintenance();
            //Computer Address
            onLoad.GetCompAddr();
            //Take away Payment Type
            onLoad.GetTAPayType();
            onLoad.GetTAPayTypeDisc();
            //Take away Delivery Distance Charge
            onLoad.GetTADistCharge();
            onLoad.GetTADistChargeRemark();
            //Take away Post Code
            onLoad.GetTAPostCode();
            onLoad.GetTAPostCodeRemark();
            //Take away Menu Set
            onLoad.GetTAMenuSet();
            //Dept Code
            onLoad.GetTADeptCode();
            //Dept Code Detail
            onLoad.GetTADeptCodeDetail();
            //Take away Menu Category
            onLoad.GetTAMenuCategory();
            //System Control
            onLoad.GetSysControlList();
            //Menu Item
            onLoad.GetTAMenuItemList();
            onLoad.GetTAMenuItemSCList();
            onLoad.GetTAMenuItemTCList();
            onLoad.GetTAMenuItemTHList();
            onLoad.GetTAMenuItemSubMenuList();
            onLoad.GetTAMenuItemSubMenuDetailList();
            //TA Table Setup
            onLoad.GetTaTblSetup();
            //TA Extra Menu Edit
            onLoad.GetExtraMenuEdit();
            //TA Customer
            onLoad.GetTACust();
            //TA OrderItem
            onLoad.GetTAOrderItem();
            //System Vlaue
            onLoad.GetSysValueList();
            //TA Config Pre-Defined
            onLoad.GetTAPreDefined();
            //TA Driver Setup
            onLoad.GetTADriverSetUp();
            //TA Payment
            onLoad.GetTAPaymentList();
            //Free Food Items
            onLoad.GetTAFreeFoodItemsList();
            //Print setup -> General -> Print Information
            onLoad.GetTAPrtInfo();
            //Postcode Assignment
            onLoad.GetPostcodeChargeList();
            onLoad.GetPostcodeZoneList();
        }