Exemplo n.º 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();
            }
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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);
            }
        }