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); }
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); }
// public bool Erasing() { DXInfo.Models.NameCode nameCode = uow.NameCode.GetAll().Where(w => w.Type == "Erasing").FirstOrDefault(); if (nameCode != null && nameCode.Value == "true") { return(true); } return(false); }
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); }