예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var thisSet = setBll.GetSetById(SysSettingEnum.PURCHASING_TEAM);

            if (thisSet != null && !string.IsNullOrEmpty(thisSet.setting_value))
            {
                dto = new Tools.Serialize().DeserializeJson <PurchasingTeamDto>(thisSet.setting_value);
            }
            if (dto == null)
            {
                dto = new PurchasingTeamDto();
            }
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var thisSet = setBll.GetSetById(SysSettingEnum.DUPLICATE_TICKET_HANDLING);

            if (thisSet != null && !string.IsNullOrEmpty(thisSet.setting_value))
            {
                dto = new Tools.Serialize().DeserializeJson <DuplicateTicketDto>(thisSet.setting_value);
            }
            if (dto == null)
            {
                dto = new DuplicateTicketDto();
            }
        }
예제 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var thisSet = setBll.GetSetById(SysSettingEnum.MILEAGE_KILOMETRAGE_DEFAULTS);

            if (thisSet != null && !string.IsNullOrEmpty(thisSet.setting_value))
            {
                dto = new Tools.Serialize().DeserializeJson <MileageDefaultsDto>(thisSet.setting_value);
            }
            if (dto == null)
            {
                dto = new MileageDefaultsDto();
            }
            if (dto.costCodeId != null)
            {
                thisCode = new CostCodeBLL().GetCodeById((long)dto.costCodeId);
            }
        }