public void SetValue(string prop, string value = null, IType instance = null) { switch (prop) { case DataTypes.EMPLOYEE_ITN_DT: EmpItn = value; break; case DataTypes.INCOME_ACCURED_DT: IncomeAccured = decimal.Parse(value); break; case DataTypes.INCOME_PAID_DT: IncomePaid = decimal.Parse(value); break; case DataTypes.INCOME_SIGN_DT: IncomeSign = decimal.Parse(value); break; case DataTypes.DATE_ADOPT_DT: DateAdopt = SpecialParsing.parserDate(value); break; case DataTypes.DATE_DISMISS_DT: DateDismiss = SpecialParsing.parserDate(value); break; case DataTypes.SIGN_DT: Sign = int.Parse(value); break; } }
public void SetValue(string prop, string value = null, IType instance = null) { switch (prop) { case DataTypes.PRIVATE_ENTERPRENUER_DT: privateEnterprenuer = (PrivateEnterprenuer)instance; break; case DataTypes.TYPE_UNIFIED_SOCIAL_TAX_DT: Type = value; break; case DataTypes.SFS_CODE_DT: SFSCode = value; break; case DataTypes.START_DATE_DT: Start = SpecialParsing.parserDate(value); break; case DataTypes.LAST_DATE_DT: Last = SpecialParsing.parserDate(value); break; case DataTypes.SUBMISSION_DATE_DT: SubmissionDate = SpecialParsing.parserDate(value); break; } }
public void SetValue(string prop, string value = null, IType instance = null) { if (value == null && instance == null) { return; } switch (prop) { case DataTypes.PRIVATE_ENTERPRENUER_DT: if (instance != null && instance is PrivateEnterprenuer) { privateEnterprenuer = (PrivateEnterprenuer)instance; } break; case DataTypes.SFS_CODE_DT: SFSCode = value; break; case DataTypes.TYPE_ONE_TAX_PAYER_DT: Type = value; break; case DataTypes.YEAR_DT: Year = Int32.Parse(value); break; case DataTypes.QUARTER_DT: Quarter = Int32.Parse(value); break; case DataTypes.MONTH_DT: Month = Int32.Parse(value); break; case DataTypes.INCOME_DT: Income = decimal.Parse(value); break; case DataTypes.SPECIFIED_AMOUNT_DT: SpecifiedAmount = decimal.Parse(value); break; case DataTypes.SUBMISSION_DATE_DT: SubmissionDate = SpecialParsing.parserDate(value); break; default: return; } }