Board index » off-topic » NET noob question
Brad White
Delphi Developer |
NET noob question2007-04-10 03:55:30 AM off-topic5 The C# code for the Delphi.NET code posted in d.l.d.dotnet The D.NET code was trimmed, but I left the cs code alone to not risk removing some important clue. ------------- // Generated on 06-Apr-2007 8:27:59 by gencs v1.0.11.0 using System; using System.Text; using Synergex.xfnlnet; namespace InsiteCDNS { /// <summary> /// Structural Interface Class InsiteCD /// </summary> [XFAttr(size=500)] [Serializable] public class C3h : IStructWire { /// <summary> /// Attributes for fields /// </summary> public readonly static XFAttr[] fieldAttributes = new XFAttr[81]; static C3h() { fieldAttributes[0]= new XFAttr(XFAttr.xftype.DECIMAL,10); fieldAttributes[1]= new XFAttr(XFAttr.xftype.DECIMAL,10); fieldAttributes[2]= new XFAttr(XFAttr.xftype.DATE,XFAttr.xfformat.YYYYMMDD,8); fieldAttributes[3]= new XFAttr(XFAttr.xftype.DECIMAL,10,2); fieldAttributes[4]= new XFAttr(XFAttr.xftype.DECIMAL,2); fieldAttributes[5]= new XFAttr(XFAttr.xftype.DECIMAL,1); fieldAttributes[6]= new XFAttr(XFAttr.xftype.DECIMAL,3); fieldAttributes[7]= new XFAttr(XFAttr.xftype.DECIMAL,3); fieldAttributes[8]= new XFAttr(XFAttr.xftype.DECIMAL,7,5); fieldAttributes[9]= new XFAttr(XFAttr.xftype.DECIMAL,1); fieldAttributes[10]= new XFAttr(XFAttr.xftype.DECIMAL,1); fieldAttributes[11]= new XFAttr(XFAttr.xftype.DECIMAL,1); fieldAttributes[12]= new XFAttr(XFAttr.xftype.DECIMAL,1); fieldAttributes[13]= new XFAttr(XFAttr.xftype.DECIMAL,1); fieldAttributes[14]= new XFAttr(XFAttr.xftype.DECIMAL,8); fieldAttributes[15]= new XFAttr(XFAttr.xftype.DECIMAL,2); fieldAttributes[16]= new XFAttr(XFAttr.xftype.ALPHA,1); fieldAttributes[17]= new XFAttr(XFAttr.xftype.ALPHA,1); fieldAttributes[18]= new XFAttr(XFAttr.xftype.ALPHA,3); fieldAttributes[19]= new XFAttr(XFAttr.xftype.DECIMAL,2); fieldAttributes[20]= new XFAttr(XFAttr.xftype.DECIMAL,10,2); fieldAttributes[21]= new XFAttr(XFAttr.xftype.ALPHA,2); fieldAttributes[22]= new XFAttr(XFAttr.xftype.DECIMAL,1); fieldAttributes[23]= new XFAttr(XFAttr.xftype.ALPHA,1); fieldAttributes[24]= new XFAttr(XFAttr.xftype.DECIMAL,9,2); fieldAttributes[25]= new XFAttr(XFAttr.xftype.DATE,XFAttr.xfformat.YYYYMMDD,8); fieldAttributes[26]= new XFAttr(XFAttr.xftype.DECIMAL,8,2); fieldAttributes[27]= new XFAttr(XFAttr.xftype.DECIMAL,8,2); fieldAttributes[28]= new XFAttr(XFAttr.xftype.DECIMAL,8,2); fieldAttributes[29]= new XFAttr(XFAttr.xftype.DECIMAL,10,2); fieldAttributes[30]= new XFAttr(XFAttr.xftype.DECIMAL,10,2); fieldAttributes[31]= new XFAttr(XFAttr.xftype.DATE,XFAttr.xfformat.YYYYMMDD,8); fieldAttributes[32]= new XFAttr(XFAttr.xftype.DATE,XFAttr.xfformat.YYYYMMDD,8); fieldAttributes[33]= new XFAttr(XFAttr.xftype.DECIMAL,8,2); fieldAttributes[34]= new XFAttr(XFAttr.xftype.DECIMAL,8,2); fieldAttributes[35]= new XFAttr(XFAttr.xftype.DECIMAL,8,2); fieldAttributes[36]= new XFAttr(XFAttr.xftype.DATE,XFAttr.xfformat.YYYYMMDD,8); fieldAttributes[37]= new XFAttr(XFAttr.xftype.DATE,XFAttr.xfformat.YYYYMMDD,8); fieldAttributes[38]= new XFAttr(XFAttr.xftype.DECIMAL,7,5); fieldAttributes[39]= new XFAttr(XFAttr.xftype.ALPHA,1); fieldAttributes[40]= new XFAttr(XFAttr.xftype.DECIMAL,10,2); fieldAttributes[41]= new XFAttr(XFAttr.xftype.DATE,XFAttr.xfformat.YYYYMMDD,8); fieldAttributes[42]= new XFAttr(XFAttr.xftype.DATE,XFAttr.xfformat.YYYYMMDD,8); fieldAttributes[43]= new XFAttr(XFAttr.xftype.ALPHA,3); fieldAttributes[44]= new XFAttr(XFAttr.xftype.ALPHA,3); fieldAttributes[45]= new XFAttr(XFAttr.xftype.DATE,XFAttr.xfformat.YYYYMMDD,8); fieldAttributes[46]= new XFAttr(XFAttr.xftype.ALPHA,10); fieldAttributes[47]= new XFAttr(XFAttr.xftype.DECIMAL,10,2); fieldAttributes[48]= new XFAttr(XFAttr.xftype.DECIMAL,6); fieldAttributes[49]= new XFAttr(XFAttr.xftype.ALPHA,1); fieldAttributes[50]= new XFAttr(XFAttr.xftype.DECIMAL,8,2); fieldAttributes[51]= new XFAttr(XFAttr.xftype.ALPHA,1); fieldAttributes[52]= new XFAttr(XFAttr.xftype.DECIMAL,2); fieldAttributes[53]= new XFAttr(XFAttr.xftype.DECIMAL,10,2); fieldAttributes[54]= new XFAttr(XFAttr.xftype.DECIMAL,9,2); fieldAttributes[55]= new XFAttr(XFAttr.xftype.ALPHA,1); fieldAttributes[56]= new XFAttr(XFAttr.xftype.ALPHA,1); fieldAttributes[57]= new XFAttr(XFAttr.xftype.ALPHA,1); fieldAttributes[58]= new XFAttr(XFAttr.xftype.DECIMAL,2); fieldAttributes[59]= new XFAttr(XFAttr.xftype.ALPHA,1); fieldAttributes[60]= new XFAttr(XFAttr.xftype.DECIMAL,3); fieldAttributes[61]= new XFAttr(XFAttr.xftype.DATE,XFAttr.xfformat.YYYYMMDD,8); fieldAttributes[62]= new XFAttr(XFAttr.xftype.DECIMAL,2); fieldAttributes[63]= new XFAttr(XFAttr.xftype.DECIMAL,8,2); fieldAttributes[64]= new XFAttr(XFAttr.xftype.DECIMAL,8,2); fieldAttributes[65]= new XFAttr(XFAttr.xftype.DECIMAL,3); fieldAttributes[66]= new XFAttr(XFAttr.xftype.DECIMAL,1); fieldAttributes[67]= new XFAttr(XFAttr.xftype.DECIMAL,8,2); fieldAttributes[68]= new XFAttr(XFAttr.xftype.DECIMAL,12,2); fieldAttributes[69]= new XFAttr(XFAttr.xftype.DECIMAL,3); fieldAttributes[70]= new XFAttr(XFAttr.xftype.DECIMAL,8,2); fieldAttributes[71]= new XFAttr(XFAttr.xftype.DATE,XFAttr.xfformat.YYYYMMDD,8); fieldAttributes[72]= new XFAttr(XFAttr.xftype.DECIMAL,9,2); fieldAttributes[73]= new XFAttr(XFAttr.xftype.DECIMAL,10); fieldAttributes[74]= new XFAttr(XFAttr.xftype.DECIMAL,17); fieldAttributes[75]= new XFAttr(XFAttr.xftype.DECIMAL,1); fieldAttributes[76]= new XFAttr(XFAttr.xftype.DATE,XFAttr.xfformat.YYYYMMDD,8); fieldAttributes[77]= new XFAttr(XFAttr.xftype.DECIMAL,7); fieldAttributes[78]= new XFAttr(XFAttr.xftype.ALPHA,1); fieldAttributes[79]= new XFAttr(XFAttr.xftype.ALPHA,13); fieldAttributes[80]= new XFAttr(XFAttr.xftype.ALPHA,44); } private long f_Cif_no=0; /// <summary> /// CIF number /// </summary> public long Cif_no { get{ return f_Cif_no;} set{ f_Cif_no = value;} } private long f_Certificate_no=0; /// <summary> /// Certificate Number /// </summary> public long Certificate_no { get{ return f_Certificate_no;} set{ f_Certificate_no = value;} } private DateTime f_Issue_dt=new DateTime(); /// <summary> /// Issue date /// </summary> public DateTime Issue_dt { get{ return f_Issue_dt;} set{ f_Issue_dt = value;} } private decimal f_Amt_orig_cert=0; /// <summary> /// Amount of original certificate /// </summary> public decimal Amt_orig_cert { get{ return f_Amt_orig_cert;} set{ f_Amt_orig_cert = value;} } private int f_Pymt_freq_months=0; /// <summary> /// Interest payment frequency in months /// </summary> public int Pymt_freq_months { get{ return f_Pymt_freq_months;} set{ f_Pymt_freq_months = value;} } private int f_Pay_meth=0; /// <summary> /// Pay method /// </summary> public int Pay_meth { get{ return f_Pay_meth;} set{ f_Pay_meth = value;} } private int f_Term_month=0; /// <summary> /// Term in months /// </summary> public int Term_month { get{ return f_Term_month;} set{ f_Term_month = value;} } private int f_Term_days=0; /// <summary> /// Term in days /// </summary> public int Term_days { get{ return f_Term_days;} set{ f_Term_days = value;} } private decimal f_Rate=0; /// <summary> /// Interest rate /// </summary> public decimal Rate { get{ return f_Rate;} set{ f_Rate = value;} } private int f_Days_daily_rt=0; /// <summary> /// Days for daily rate calc /// </summary> public int Days_daily_rt { get{ return f_Days_daily_rt;} set{ f_Days_daily_rt = value;} } private int f_Calendar=0; /// <summary> /// Calendar code sets int days /// </summary> public int Calendar { get{ return f_Calendar;} set{ f_Calendar = value;} } private int f_Compound=0; /// <summary> /// Compound code /// </summary> public int Compound { get{ return f_Compound;} set{ f_Compound = value;} } private int f_Renewal=0; /// <summary> /// Renewal code /// </summary> public int Renewal { get{ return f_Renewal;} set{ f_Renewal = value;} } private int f_Neg_code=0; /// <summary> /// Negotiable code /// </summary> public int Neg_code { get{ return f_Neg_code;} set{ f_Neg_code = value;} } private int f_Int_acct_no=0; /// <summary> /// Pay interest to ABA /// </summary> public int Int_acct_no { get{ return f_Int_acct_no;} set{ f_Int_acct_no = value;} } private int f_Type=0; /// <summary> /// Certificate type /// </summary> public int Type { get{ return f_Type;} set{ f_Type = value;} } private string f_Class=""; /// <summary> /// Certificate class /// </summary> public string Class { get{ return f_Class;} set{ f_Class = value;} } private string f_Status_cd=""; /// <summary> /// Pledge code/other status code /// </summary> public string Status_cd { get{ return f_Status_cd;} set{ f_Status_cd = value;} } private string f_Officer=""; /// <summary> /// Officer code /// </summary> public string Officer { get{ return f_Officer;} set{ f_Officer = value;} } private int f_Branch=0; /// <summary> /// Branch /// </summary> public int Branch { get{ return f_Branch;} set{ f_Branch = value;} } private decimal f_End_bal=0; /// <summary> /// Ending balance of a closed CD /// </summary> public decimal End_bal { get{ return f_End_bal;} set{ f_End_bal = value;} } private string f_P_np=""; /// <summary> /// Personal/nonpersonal /// </summary> public string P_np { get{ return f_P_np;} set{ f_P_np = value;} } private int f_Retain_hxt=0; /// <summary> /// Retain closed CD for history /// </summary> public int Retain_hxt { get{ return f_Retain_hxt;} set{ f_Retain_hxt = value;} } private string f_New_cert_or_ck=""; /// <summary> /// New certificate flag /// </summary> public string New_cert_or_ck { get{ return f_New_cert_or_ck;} set{ f_New_cert_or_ck = value;} } private decimal f_For_amt=0; /// <summary> /// Forfeiture amount /// </summary> public decimal For_amt { get{ return f_For_amt;} set{ f_For_amt = value;} } private DateTime f_Dt_int_lst_pd=new DateTime(); /// <summary> /// Date interest last paid /// </summary> public DateTime Dt_int_lst_pd { get{ return f_Dt_int_lst_pd;} set{ f_Dt_int_lst_pd = value;} } private decimal f_Accrued=0; /// <summary> /// Accrued interest not paid (balance) /// </summary> public decimal Accrued { get{ return f_Accrued;} set{ f_Accrued = value;} } private decimal f_Acc_int_cur_updt=0; /// <summary> /// Accrued interest current update /// </summary> public decimal Acc_int_cur_updt { get{ return f_Acc_int_cur_updt;} set{ f_Acc_int_cur_updt = value;} } private decimal f_Int_pd_cur_yr=0; /// <summary> /// Interest paid current year /// </summary> public decimal Int_pd_cur_yr { get{ return f_Int_pd_cur_yr;} set{ f_Int_pd_cur_yr = value;} } private decimal f_Int_pd_hxt=0; /// <summary> /// Interest paid history /// </summary> public decimal Int_pd_hxt { get{ return f_Int_pd_hxt;} set{ f_Int_pd_hxt = value;} } private decimal f_Cur_value=0; /// <summary> /// Current value of certificate /// </summary> public decimal Cur_value { get{ return f_Cur_value;} set{ f_Cur_value = value;} } private DateTime f_Dt_lst_txn=new DateTime(); /// <summary> /// Date of last transaction /// </summary> public DateTime Dt_lst_txn { get{ return f_Dt_lst_txn;} set{ f_Dt_lst_txn = value;} } private DateTime f_Dt_cert_cash=new DateTime(); /// <summary> /// Date certificate cashed /// </summary> public DateTime Dt_cert_cash { get{ return f_Dt_cert_cash;} set{ f_Dt_cert_cash = value;} } private decimal f_Prev_accr=0; /// <summary> /// Previous accrual balance /// </summary> public decimal Prev_accr { get{ return f_Prev_accr;} set{ f_Prev_accr = value;} } private decimal f_Acc_adj_per=0; /// <summary> /// Accrual adjustment this period /// </summary> public decimal Acc_adj_per { get{ return f_Acc_adj_per;} set{ f_Acc_adj_per = value;} } private decimal f_Int_pd_nxt=0; /// <summary> /// Interest to be paid next /// </summary> public decimal Int_pd_nxt { get{ return f_Int_pd_nxt;} set{ f_Int_pd_nxt = value;} } private DateTime f_Dt_int_pd_nxt=new DateTime(); /// <summary> /// Date interest to be paid next /// </summary> public DateTime Dt_int_pd_nxt { get{ return f_Dt_int_pd_nxt;} set{ f_Dt_int_pd_nxt = value;} } private DateTime f_Mat_dt=new DateTime(); /// <summary> /// Maturity date /// </summary> public DateTime Mat_dt { get{ return f_Mat_dt;} set{ f_Mat_dt = value;} } private decimal f_Nxt_int_rt=0; /// <summary> /// Next interest rate /// </summary> public decimal Nxt_int_rt { get{ return f_Nxt_int_rt;} set{ f_Nxt_int_rt = value;} } private string f_Consol_stmt=""; /// <summary> /// Consolidated statement code /// </summary> public string Consol_stmt { get{ return f_Consol_stmt;} set{ f_Consol_stmt = value;} } private decimal f_Amt_lst_renew=0; /// <summary> /// Amount at last renewal /// </summary> public decimal Amt_lst_renew { get{ return f_Amt_lst_renew;} set{ f_Amt_lst_renew = value;} } private DateTime f_Dt_lst_renew=new DateTime(); /// <summary> /// Date of last renewal /// </summary> public DateTime Dt_lst_renew { get{ return f_Dt_lst_renew;} set{ f_Dt_lst_renew = value;} } private DateTime f_Dt_lst_maint=new DateTime(); /// <summary> /// Date of last maintenance /// </summary> public DateTime Dt_lst_maint { get{ return f_Dt_lst_maint;} set{ f_Dt_lst_maint = value;} } private string f_User_a=""; /// <summary> /// User defined field A /// </summary> public string User_a { get{ return f_User_a;} set{ f_User_a = value;} } private string f_User_b=""; /// <summary> /// User defined field B /// </summary> public string User_b { get{ return f_User_b;} set{ f_User_b = value;} } private DateTime f_User_c=new DateTime(); /// <summary> /// User defined field C /// </summary> public DateTime User_c { get{ return f_User_c;} set{ f_User_c = value;} } private string f_User_d=""; /// <summary> /// User defined field D /// </summary> public string User_d { get{ return f_User_d;} set{ f_User_d = value;} } private decimal f_User_e=0; /// <summary> /// User defined field E /// </summary> public decimal User_e { get{ return f_User_e;} set{ f_User_e = value;} } private int f_User_f=0; /// <summary> /// User defined field F /// </summary> public int User_f { get{ return f_User_f;} set{ f_User_f = value;} } private string f_Backup_whold=""; /// <summary> /// Backup withholding flag /// </summary> public string Backup_whold { get{ return f_Backup_whold;} set{ f_Backup_whold = value;} } private decimal f_Int_wheld_cur_yr=0; /// <summary> /// Interest withheld current year /// </summary> public decimal Int_wheld_cur_yr { get{ return f_Int_wheld_cur_yr;} set{ f_Int_wheld_cur_yr = value;} } private string f_Over_100k=""; /// <summary> /// Certificate over 100K flag /// </summary> public string Over_100k { get{ return f_Over_100k;} set{ f_Over_100k = value;} } private int f_Gl=0; /// <summary> /// G/L code /// </summary> public int Gl { get{ return f_Gl;} set{ f_Gl = value;} } private decimal f_Prev_yr_int_=0; /// <summary> /// Previous year's interest earned /// </summary> public decimal Prev_yr_int_ { get{ return f_Prev_yr_int_;} set{ f_Prev_yr_int_ = value;} } private decimal f_Other_fed_whold=0; /// <summary> /// Other federal withholding current year /// </summary> public decimal Other_fed_whold { get{ return f_Other_fed_whold;} set{ f_Other_fed_whold = value;} } private string f_Print_int_comp=""; /// <summary> /// Print interest payment/compound notice /// </summary> public string Print_int_comp { get{ return f_Print_int_comp;} set{ f_Print_int_comp = value;} } private string f_Print_maturity=""; /// <summary> /// Print maturity notice /// </summary> public string Print_maturity { get{ return f_Print_maturity;} set{ f_Print_maturity = value;} } private string f_Print_auto_renew=""; /// <summary> /// Print auto renewal notice /// </summary> public string Print_auto_renew { get{ return f_Print_auto_renew;} set{ f_Print_auto_renew = value;} } private int f_Pymt_date_align=0; /// <summary> /// Payment date alignment /// </summary> public int Pymt_date_align { get{ return f_Pymt_date_align;} set{ f_Pymt_date_align = value;} } private string f_Rt_chg_freq=""; /// <summary> /// Rate change frequency code /// </summary> public string Rt_chg_freq { get{ return f_Rt_chg_freq;} set{ f_Rt_chg_freq = value;} } private int f_Rt_chg_per=0; /// <summary> /// Rate change period in months/days /// </summary> public int Rt_chg_per { get{ return f_Rt_chg_per;} set{ f_Rt_chg_per = value;} } private DateTime f_Next_rt_chg_dt=new DateTime(); /// <summary> /// Next rate change date /// </summary> public DateTime Next_rt_chg_dt { get{ return f_Next_rt_chg_dt;} set{ f_Next_rt_chg_dt = value;} } private int f_Renew_date_align=0; /// <summary> /// Renewal date alignment /// </summary> public int Renew_date_align { get{ return f_Renew_date_align;} set{ f_Renew_date_align = value;} } private decimal f_Cur_ytd_st_whold=0; /// <summary> /// State withholding current year /// </summary> public decimal Cur_ytd_st_whold { get{ return f_Cur_ytd_st_whold;} set{ f_Cur_ytd_st_whold = value;} } private decimal f_Curr_ytd_accr=0; /// <summary> /// YTD accrued interest /// </summary> public decimal Curr_ytd_accr { get{ return f_Curr_ytd_accr;} set{ f_Curr_ytd_accr = value;} } private int f_Image_fold=0; /// <summary> /// Image folder /// </summary> public int Image_fold { get{ return f_Image_fold;} set{ f_Image_fold = value;} } private int f_Sec_level=0; /// <summary> /// Account security level /// </summary> public int Sec_level { get{ return f_Sec_level;} set{ f_Sec_level = value;} } private decimal f_Int_pd_snc_cp=0; /// <summary> /// Interest paid since last CP /// </summary> public decimal Int_pd_snc_cp { get{ return f_Int_pd_snc_cp;} set{ f_Int_pd_snc_cp = value;} } private decimal f_Agg_bal_snc_cp=0; /// <summary> /// Aggregate balance since last CP /// </summary> public decimal Agg_bal_snc_cp { get{ return f_Agg_bal_snc_cp;} set{ f_Agg_bal_snc_cp = value;} } private int f_Days_snc_cp=0; /// <summary> /// Days since last CP /// </summary> public int Days_snc_cp { get{ return f_Days_snc_cp;} set{ f_Days_snc_cp = value;} } private decimal f_Accr_int_cp=0; /// <summary> /// Accrued interest since last CP /// </summary> public decimal Accr_int_cp { get{ return f_Accr_int_cp;} set{ f_Accr_int_cp = value;} } private DateTime f_Dt_lst_cp=new DateTime(); /// <summary> /// Date of last customer profitability /// </summary> public DateTime Dt_lst_cp { get{ return f_Dt_lst_cp;} set{ f_Dt_lst_cp = value;} } private decimal f_For_int_snc_cp=0; /// <summary> /// Forfeiture amount since last CP /// </summary> public decimal For_int_snc_cp { get{ return f_For_int_snc_cp;} set{ f_For_int_snc_cp = value;} } private long f_Primary_dda=0; /// <summary> /// Cons stmt primary DDA account /// </summary> public long Primary_dda { get{ return f_Primary_dda;} set{ f_Primary_dda = value;} } private long f_Pay_int_acct_no=0; /// <summary> /// Pay interest to account /// </summary> public long Pay_int_acct_no { get{ return f_Pay_int_acct_no;} set{ f_Pay_int_acct_no = value;} } private int f_Eft_status=0; /// <summary> /// EFT status /// </summary> public int Eft_status { get{ return f_Eft_status;} set{ f_Eft_status = value;} } private DateTime f_Dt_eft_trn_begin=new DateTime(); /// <summary> /// Date EFT transactions begin /// </summary> public DateTime Dt_eft_trn_begin { get{ return f_Dt_eft_trn_begin;} set{ f_Dt_eft_trn_begin = value;} } private int f_Eft_sequence=0; /// <summary> /// EFT sequence /// </summary> public int Eft_sequence { get{ return f_Eft_sequence;} set{ f_Eft_sequence = value;} } private string f_Cds_tax_typ=""; /// <summary> /// Tax ID code /// </summary> public string Cds_tax_typ { get{ return f_Cds_tax_typ;} set{ f_Cds_tax_typ = value;} } private string f_Cds_sname=""; /// <summary> /// Short name /// </summary> public string Cds_sname { get{ return f_Cds_sname;} set{ f_Cds_sname = value;} } private string f_Noname_001=""; /// <summary> /// Filler /// </summary> public string Noname_001 { get{ return f_Noname_001;} set{ f_Noname_001 = value;} } /// <summary> /// Constructor /// </summary> public C3h() { } /// <summary> /// serialize structure /// </summary> public string structToWire() { StringBuilder sb = new StringBuilder(); sb.Append("ST[81]500%"); StringBuilder body = new StringBuilder(); body.Append(XFProtocol.fieldToWire(f_Cif_no,fieldAttributes[0])); body.Append(XFProtocol.fieldToWire(f_Certificate_no,fieldAttributes[1])); body.Append(XFProtocol.fieldToWire(f_Issue_dt,fieldAttributes[2])); body.Append(XFProtocol.fieldToWire(f_Amt_orig_cert,fieldAttributes[3])); body.Append(XFProtocol.fieldToWire(f_Pymt_freq_months,fieldAttributes[4])); body.Append(XFProtocol.fieldToWire(f_Pay_meth,fieldAttributes[5])); body.Append(XFProtocol.fieldToWire(f_Term_month,fieldAttributes[6])); body.Append(XFProtocol.fieldToWire(f_Term_days,fieldAttributes[7])); body.Append(XFProtocol.fieldToWire(f_Rate,fieldAttributes[8])); body.Append(XFProtocol.fieldToWire(f_Days_daily_rt,fieldAttributes[9])); body.Append(XFProtocol.fieldToWire(f_Calendar,fieldAttributes[10])); body.Append(XFProtocol.fieldToWire(f_Compound,fieldAttributes[11])); body.Append(XFProtocol.fieldToWire(f_Renewal,fieldAttributes[12])); body.Append(XFProtocol.fieldToWire(f_Neg_code,fieldAttributes[13])); body.Append(XFProtocol.fieldToWire(f_Int_acct_no,fieldAttributes[14])); body.Append(XFProtocol.fieldToWire(f_Type,fieldAttributes[15])); body.Append(XFProtocol.fieldToWire(f_Class,fieldAttributes[16])); body.Append(XFProtocol.fieldToWire(f_Status_cd,fieldAttributes[17])); body.Append(XFProtocol.fieldToWire(f_Officer,fieldAttributes[18])); body.Append(XFProtocol.fieldToWire(f_Branch,fieldAttributes[19])); body.Append(XFProtocol.fieldToWire(f_End_bal,fieldAttributes[20])); body.Append(XFProtocol.fieldToWire(f_P_np,fieldAttributes[21])); body.Append(XFProtocol.fieldToWire(f_Retain_hxt,fieldAttributes[22])); body.Append(XFProtocol.fieldToWire(f_New_cert_or_ck,fieldAttributes[23])); body.Append(XFProtocol.fieldToWire(f_For_amt,fieldAttributes[24])); body.Append(XFProtocol.fieldToWire(f_Dt_int_lst_pd,fieldAttributes[25])); body.Append(XFProtocol.fieldToWire(f_Accrued,fieldAttributes[26])); body.Append(XFProtocol.fieldToWire(f_Acc_int_cur_updt,fieldAttributes[27])); body.Append(XFProtocol.fieldToWire(f_Int_pd_cur_yr,fieldAttributes[28])); body.Append(XFProtocol.fieldToWire(f_Int_pd_hxt,fieldAttributes[29])); body.Append(XFProtocol.fieldToWire(f_Cur_value,fieldAttributes[30])); body.Append(XFProtocol.fieldToWire(f_Dt_lst_txn,fieldAttributes[31])); body.Append(XFProtocol.fieldToWire(f_Dt_cert_cash,fieldAttributes[32])); body.Append(XFProtocol.fieldToWire(f_Prev_accr,fieldAttributes[33])); body.Append(XFProtocol.fieldToWire(f_Acc_adj_per,fieldAttributes[34])); body.Append(XFProtocol.fieldToWire(f_Int_pd_nxt,fieldAttributes[35])); body.Append(XFProtocol.fieldToWire(f_Dt_int_pd_nxt,fieldAttributes[36])); body.Append(XFProtocol.fieldToWire(f_Mat_dt,fieldAttributes[37])); body.Append(XFProtocol.fieldToWire(f_Nxt_int_rt,fieldAttributes[38])); body.Append(XFProtocol.fieldToWire(f_Consol_stmt,fieldAttributes[39])); body.Append(XFProtocol.fieldToWire(f_Amt_lst_renew,fieldAttributes[40])); body.Append(XFProtocol.fieldToWire(f_Dt_lst_renew,fieldAttributes[41])); body.Append(XFProtocol.fieldToWire(f_Dt_lst_maint,fieldAttributes[42])); body.Append(XFProtocol.fieldToWire(f_User_a,fieldAttributes[43])); body.Append(XFProtocol.fieldToWire(f_User_b,fieldAttributes[44])); body.Append(XFProtocol.fieldToWire(f_User_c,fieldAttributes[45])); body.Append(XFProtocol.fieldToWire(f_User_d,fieldAttributes[46])); body.Append(XFProtocol.fieldToWire(f_User_e,fieldAttributes[47])); body.Append(XFProtocol.fieldToWire(f_User_f,fieldAttributes[48])); body.Append(XFProtocol.fieldToWire(f_Backup_whold,fieldAttributes[49])); body.Append(XFProtocol.fieldToWire(f_Int_wheld_cur_yr,fieldAttributes[50])); body.Append(XFProtocol.fieldToWire(f_Over_100k,fieldAttributes[51])); body.Append(XFProtocol.fieldToWire(f_Gl,fieldAttributes[52])); body.Append(XFProtocol.fieldToWire(f_Prev_yr_int_,fieldAttributes[53])); body.Append(XFProtocol.fieldToWire(f_Other_fed_whold,fieldAttributes[54])); body.Append(XFProtocol.fieldToWire(f_Print_int_comp,fieldAttributes[55])); body.Append(XFProtocol.fieldToWire(f_Print_maturity,fieldAttributes[56])); body.Append(XFProtocol.fieldToWire(f_Print_auto_renew,fieldAttributes[57])); body.Append(XFProtocol.fieldToWire(f_Pymt_date_align,fieldAttributes[58])); body.Append(XFProtocol.fieldToWire(f_Rt_chg_freq,fieldAttributes[59])); body.Append(XFProtocol.fieldToWire(f_Rt_chg_per,fieldAttributes[60])); body.Append(XFProtocol.fieldToWire(f_Next_rt_chg_dt,fieldAttributes[61])); body.Append(XFProtocol.fieldToWire(f_Renew_date_align,fieldAttributes[62])); body.Append(XFProtocol.fieldToWire(f_Cur_ytd_st_whold,fieldAttributes[63])); body.Append(XFProtocol.fieldToWire(f_Curr_ytd_accr,fieldAttributes[64])); body.Append(XFProtocol.fieldToWire(f_Image_fold,fieldAttributes[65])); body.Append(XFProtocol.fieldToWire(f_Sec_level,fieldAttributes[66])); body.Append(XFProtocol.fieldToWire(f_Int_pd_snc_cp,fieldAttributes[67])); body.Append(XFProtocol.fieldToWire(f_Agg_bal_snc_cp,fieldAttributes[68])); body.Append(XFProtocol.fieldToWire(f_Days_snc_cp,fieldAttributes[69])); body.Append(XFProtocol.fieldToWire(f_Accr_int_cp,fieldAttributes[70])); body.Append(XFProtocol.fieldToWire(f_Dt_lst_cp,fieldAttributes[71])); body.Append(XFProtocol.fieldToWire(f_For_int_snc_cp,fieldAttributes[72])); body.Append(XFProtocol.fieldToWire(f_Primary_dda,fieldAttributes[73])); body.Append(XFProtocol.fieldToWire(f_Pay_int_acct_no,fieldAttributes[74])); body.Append(XFProtocol.fieldToWire(f_Eft_status,fieldAttributes[75])); body.Append(XFProtocol.fieldToWire(f_Dt_eft_trn_begin,fieldAttributes[76])); body.Append(XFProtocol.fieldToWire(f_Eft_sequence,fieldAttributes[77])); body.Append(XFProtocol.fieldToWire(f_Cds_tax_typ,fieldAttributes[78])); body.Append(XFProtocol.fieldToWire(f_Cds_sname,fieldAttributes[79])); body.Append(XFProtocol.fieldToWire(f_Noname_001,fieldAttributes[80])); body.Append("^"); sb.Append(body.Length+"#"+body.ToString()+";"); return sb.ToString(); } /// <summary> /// deserialize structure /// </summary> public void wireToStruct(SynMessage reply) { f_Cif_no = XFProtocol.wireTolong(reply); f_Certificate_no = XFProtocol.wireTolong(reply); f_Issue_dt = XFProtocol.wireToDateTime(reply,fieldAttributes[2]); f_Amt_orig_cert = XFProtocol.wireTodecimal(reply); f_Pymt_freq_months = XFProtocol.wireToint(reply); f_Pay_meth = XFProtocol.wireToint(reply); f_Term_month = XFProtocol.wireToint(reply); f_Term_days = XFProtocol.wireToint(reply); f_Rate = XFProtocol.wireTodecimal(reply); f_Days_daily_rt = XFProtocol.wireToint(reply); f_Calendar = XFProtocol.wireToint(reply); f_Compound = XFProtocol.wireToint(reply); f_Renewal = XFProtocol.wireToint(reply); f_Neg_code = XFProtocol.wireToint(reply); f_Int_acct_no = XFProtocol.wireToint(reply); f_Type = XFProtocol.wireToint(reply); f_Class = XFProtocol.wireTostring(reply); f_Status_cd = XFProtocol.wireTostring(reply); f_Officer = XFProtocol.wireTostring(reply); f_Branch = XFProtocol.wireToint(reply); f_End_bal = XFProtocol.wireTodecimal(reply); f_P_np = XFProtocol.wireTostring(reply); f_Retain_hxt = XFProtocol.wireToint(reply); f_New_cert_or_ck = XFProtocol.wireTostring(reply); f_For_amt = XFProtocol.wireTodecimal(reply); f_Dt_int_lst_pd = XFProtocol.wireToDateTime(reply,fieldAttributes[25]); f_Accrued = XFProtocol.wireTodecimal(reply); f_Acc_int_cur_updt = XFProtocol.wireTodecimal(reply); f_Int_pd_cur_yr = XFProtocol.wireTodecimal(reply); f_Int_pd_hxt = XFProtocol.wireTodecimal(reply); f_Cur_value = XFProtocol.wireTodecimal(reply); f_Dt_lst_txn = XFProtocol.wireToDateTime(reply,fieldAttributes[31]); f_Dt_cert_cash = XFProtocol.wireToDateTime(reply,fieldAttributes[32]); f_Prev_accr = XFProtocol.wireTodecimal(reply); f_Acc_adj_per = XFProtocol.wireTodecimal(reply); f_Int_pd_nxt = XFProtocol.wireTodecimal(reply); f_Dt_int_pd_nxt = XFProtocol.wireToDateTime(reply,fieldAttributes[36]); f_Mat_dt = XFProtocol.wireToDateTime(reply,fieldAttributes[37]); f_Nxt_int_rt = XFProtocol.wireTodecimal(reply); f_Consol_stmt = XFProtocol.wireTostring(reply); f_Amt_lst_renew = XFProtocol.wireTodecimal(reply); f_Dt_lst_renew = XFProtocol.wireToDateTime(reply,fieldAttributes[41]); f_Dt_lst_maint = XFProtocol.wireToDateTime(reply,fieldAttributes[42]); f_User_a = XFProtocol.wireTostring(reply); f_User_b = XFProtocol.wireTostring(reply); f_User_c = XFProtocol.wireToDateTime(reply,fieldAttributes[45]); f_User_d = XFProtocol.wireTostring(reply); f_User_e = XFProtocol.wireTodecimal(reply); f_User_f = XFProtocol.wireToint(reply); f_Backup_whold = XFProtocol.wireTostring(reply); f_Int_wheld_cur_yr = XFProtocol.wireTodecimal(reply); f_Over_100k = XFProtocol.wireTostring(reply); f_Gl = XFProtocol.wireToint(reply); f_Prev_yr_int_ = XFProtocol.wireTodecimal(reply); f_Other_fed_whold = XFProtocol.wireTodecimal(reply); f_Print_int_comp = XFProtocol.wireTostring(reply); f_Print_maturity = XFProtocol.wireTostring(reply); f_Print_auto_renew = XFProtocol.wireTostring(reply); f_Pymt_date_align = XFProtocol.wireToint(reply); f_Rt_chg_freq = XFProtocol.wireTostring(reply); f_Rt_chg_per = XFProtocol.wireToint(reply); f_Next_rt_chg_dt = XFProtocol.wireToDateTime(reply,fieldAttributes[61]); f_Renew_date_align = XFProtocol.wireToint(reply); f_Cur_ytd_st_whold = XFProtocol.wireTodecimal(reply); f_Curr_ytd_accr = XFProtocol.wireTodecimal(reply); f_Image_fold = XFProtocol.wireToint(reply); f_Sec_level = XFProtocol.wireToint(reply); f_Int_pd_snc_cp = XFProtocol.wireTodecimal(reply); f_Agg_bal_snc_cp = XFProtocol.wireTodecimal(reply); f_Days_snc_cp = XFProtocol.wireToint(reply); f_Accr_int_cp = XFProtocol.wireTodecimal(reply); f_Dt_lst_cp = XFProtocol.wireToDateTime(reply,fieldAttributes[71]); f_For_int_snc_cp = XFProtocol.wireTodecimal(reply); f_Primary_dda = XFProtocol.wireTolong(reply); f_Pay_int_acct_no = XFProtocol.wireTolong(reply); f_Eft_status = XFProtocol.wireToint(reply); f_Dt_eft_trn_begin = XFProtocol.wireToDateTime(reply,fieldAttributes[76]); f_Eft_sequence = XFProtocol.wireToint(reply); f_Cds_tax_typ = XFProtocol.wireTostring(reply); f_Cds_sname = XFProtocol.wireTostring(reply); f_Noname_001 = XFProtocol.wireTostring(reply); } } } |