示例#1
0
        public string PrintTicketTitle(DXInfo.Models.NameCodeType type)
        {
            string title = "";

            switch (type)
            {
            case DXInfo.Models.NameCodeType.PrintTicketTitleOfMember:
                title = "寻仙记,里约";
                break;

            case DXInfo.Models.NameCodeType.PrintTicketTitle1OfCold:
                title = "寻仙记";
                break;

            case DXInfo.Models.NameCodeType.PrintTicketTitle1OfWR:
                title = "小伦家傣味店";
                break;
            }
            string strtype = type.ToString();

            DXInfo.Models.NameCode nameCode = uow.NameCode.GetAll().Where(w => w.Type == strtype).FirstOrDefault();
            if (nameCode != null)
            {
                title = nameCode.Value;
            }
            return(title);
        }
示例#2
0
        public string PrintTicketButtomTitle(DXInfo.Models.NameCodeType type)
        {
            string title = "";

            switch (type)
            {
            case DXInfo.Models.NameCodeType.PrintTicketButtomTitle:
                title = "大理沱之源茶文化有限责任公司";
                break;

            case DXInfo.Models.NameCodeType.PrintTicketButtomTitleOfWR:
                title = "大理沱之源茶文化有限责任公司";
                break;

            case DXInfo.Models.NameCodeType.ThreeButtomTitleInMoney:
                title = "大理沱之源茶文化有限责任公司";
                break;
            }
            string strtype = type.ToString();

            DXInfo.Models.NameCode nameCode = uow.NameCode.GetAll().Where(w => w.Type == strtype).FirstOrDefault();
            if (nameCode != null)
            {
                title = nameCode.Value;
            }
            return(title);
        }
示例#3
0
        public List <SelectListItem> GetNameCodeType(DXInfo.Models.NameCodeType nct)
        {
            List <SelectListItem> listItems = new List <SelectListItem>()
            {
                new SelectListItem {
                    Text = "", Value = ""
                }
            };
            List <DXInfo.Models.NameCode> lNameCode = common.GetlNameCode(nct);

            lNameCode.ForEach(delegate(DXInfo.Models.NameCode nc) { listItems.Add(new SelectListItem()
                {
                    Text = nc.Name, Value = nc.Code
                }); });
            return(listItems);
        }
示例#4
0
        public string ThreePrintFile(DXInfo.Models.NameCodeType type)
        {
            string fileName = "";

            switch (type)
            {
            case DXInfo.Models.NameCodeType.ThreePrintNoMemmber:
                fileName = "Report1.rdlc";
                break;

            case DXInfo.Models.NameCodeType.ThreePrintMemmberNoMoney:
                fileName = "Report2.rdlc";
                break;

            case DXInfo.Models.NameCodeType.ThreePrintMemmber:
                fileName = "Report3.rdlc";
                break;

            case DXInfo.Models.NameCodeType.SaleThreePrintNoMemmber:
                fileName = "Report4.rdlc";
                break;

            case DXInfo.Models.NameCodeType.SaleThreePrintMemmberNoMoney:
                fileName = "Report5.rdlc";
                break;

            case DXInfo.Models.NameCodeType.SaleThreePrintMemmber:
                fileName = "Report6.rdlc";
                break;

            case DXInfo.Models.NameCodeType.ThreePrintInMoney:
                fileName = "Report7.rdlc";
                break;
            }
            string strtype = type.ToString();

            DXInfo.Models.NameCode nameCode = uow.NameCode.GetAll().Where(w => w.Type == strtype).FirstOrDefault();
            if (nameCode != null)
            {
                fileName = nameCode.Value;
            }
            return(fileName);
        }