private void Button1Click(object sender, EventArgs e) { this.giForm = new AFN10_01_Data(); this.giForm.Data = this.textBox4.Text; this.NeedSave = true; this.giForm.SetText(); this.giForm.ShowDialog(); this.textBox4.Text = this.giForm.Data; this.giForm = null; }
public void DisplayR(string iAFN, string iFN, string iValues) { if (string.IsNullOrEmpty(iValues) | iValues.ToUpper().IndexOf("部分确认") >= 0) { iValues = iValues.Split(new char[] { ':' })[1]; iAFN = "00"; iFN = "0003"; this.giForm = new DataParse(); } else { if (string.IsNullOrEmpty(iValues) | iValues.ToUpper().IndexOf("ERROR") >= 0 | iValues.ToUpper().IndexOf("确认") >= 0 | iValues.ToUpper().IndexOf("否认") >= 0) { return; } if (iAFN == "00" | iFN == "0003") { this.giForm = new DataParse(); } if (iAFN == "03") { this.giForm = new DataParse(); } if (iAFN == "06") { this.giForm = new DataParse(); } if (iAFN == "09") { this.giForm = new DataParse(); } if (iAFN == "0A" && iFN == "0001") { this.giForm = new AFN04_01(); } if (iAFN == "0A" && iFN == "0002") { this.giForm = new AFN04_02(); } if (iAFN == "0A" && iFN == "0003") { this.giForm = new AFN04_03(); } if (iAFN == "0A" && iFN == "0004") { this.giForm = new AFN04_04(); } if (iAFN == "0A" && iFN == "0005") { this.giForm = new AFN04_05(); } if (iAFN == "0A" && iFN == "0006") { this.giForm = new AFN04_06(); } if (iAFN == "0A" && iFN == "0007") { this.giForm = new AFN04_07(); } if (iAFN == "0A" && iFN == "0008") { this.giForm = new AFN04_08(); } if (iAFN == "0A" && iFN == "0009") { this.giForm = new AFN04_09(); } if (iAFN == "0A" && iFN == "0010") { this.giForm = new AFN04_10(); } if (iAFN == "0A" && iFN == "0011") { this.giForm = new AFN04_11(); } if (iAFN == "0A" && iFN == "0012") { this.giForm = new AFN04_12(); } if (iAFN == "0A" && iFN == "0013") { this.giForm = new AFN04_13(); } if (iAFN == "0A" && iFN == "0014") { this.giForm = new AFN04_14(); } if (iAFN == "0A" && iFN == "0015") { this.giForm = new AFN04_15(); } if (iAFN == "0A" && iFN == "0016") { this.giForm = new AFN04_16(); } if (iAFN == "0A" && iFN == "0017") { this.giForm = new AFN04_17(); } if (iAFN == "0A" && iFN == "0018") { this.giForm = new AFN04_18(); } if (iAFN == "0A" && (iFN == "0019" | iFN == "0020")) { this.giForm = new AFN04_19(); } if (iAFN == "0A" && iFN == "0021") { this.giForm = new AFN04_21(); } if (iAFN == "0A" && iFN == "0022") { this.giForm = new AFN04_22(); } if (iAFN == "0A" && iFN == "0023") { this.giForm = new AFN04_23(); } if (iAFN == "0A" && iFN == "0025") { this.giForm = new AFN04_25(); } if (iAFN == "0A" && iFN == "0026") { this.giForm = new AFN04_26(); } if (iAFN == "0A" && iFN == "0027") { this.giForm = new AFN04_27(); } if (iAFN == "0A" && iFN == "0028") { this.giForm = new AFN04_28(); } if (iAFN == "0A" && iFN == "0029") { this.giForm = new AFN04_29(); } if (iAFN == "0A" && iFN == "0030") { this.giForm = new AFN04_30(); } if (iAFN == "0A" && iFN == "0031") { this.giForm = new AFN04_31(); } if (iAFN == "0A" && iFN == "0033") { this.giForm = new AFN04_33(); } if (iAFN == "0A" && iFN == "0034") { this.giForm = new AFN04_34(); } if (iAFN == "0A" && iFN == "0035") { this.giForm = new AFN04_35(); } if (iAFN == "0A" && iFN == "0036") { this.giForm = new AFN04_36(); } if (iAFN == "0A" && iFN == "0037") { this.giForm = new AFN04_37(); } if (iAFN == "0A" && (iFN == "0038" | iFN == "0039")) { this.giForm = new AFN04_38(); } if (iAFN == "0A" && iFN == "0041") { this.giForm = new AFN04_41(); } if (iAFN == "0A" && iFN == "0042") { this.giForm = new AFN04_42(); } if (iAFN == "0A" && iFN == "0043") { this.giForm = new AFN04_43(); } if (iAFN == "0A" && iFN == "0044") { this.giForm = new AFN04_44(); } if (iAFN == "0A" && iFN == "0045") { this.giForm = new AFN04_45(); } if (iAFN == "0A" && iFN == "0046") { this.giForm = new AFN04_46(); } if (iAFN == "0A" && iFN == "0047") { this.giForm = new AFN04_47(); } if (iAFN == "0A" && iFN == "0048") { this.giForm = new AFN04_48(); } if (iAFN == "0A" && iFN == "0049") { this.giForm = new AFN04_49(); } if (iAFN == "0A" && iFN == "0057") { this.giForm = new AFN04_57(); } if (iAFN == "0A" && iFN == "0058") { this.giForm = new AFN04_58(); } if (iAFN == "0A" && iFN == "0059") { this.giForm = new AFN04_59(); } if (iAFN == "0A" && iFN == "0060") { this.giForm = new AFN04_60(); } if (iAFN == "0A" && iFN == "0061") { this.giForm = new AFN04_61(); } if (iAFN == "0A" && (iFN == "0065" | iFN == "0066")) { this.giForm = new AFN04_65(); } if (iAFN == "0A" && (iFN == "0067" | iFN == "0068")) { this.giForm = new AFN04_67(); } if (iAFN == "0A" && iFN == "0073") { this.giForm = new AFN04_73(); } if (iAFN == "0A" && iFN == "0074") { this.giForm = new AFN04_74(); } if (iAFN == "0A" && iFN == "0075") { this.giForm = new AFN04_75(); } if (iAFN == "0A" && iFN == "0076") { this.giForm = new AFN04_76(); } if (iAFN == "0A" && iFN == "0081") { this.giForm = new AFN04_81(); } if (iAFN == "0A" && iFN == "0082") { this.giForm = new AFN04_81(); } if (iAFN == "0A" && iFN == "0083") { this.giForm = new AFN04_83(); } if (iAFN == "0A" && iFN == "0085") { this.giForm = new AFN04_85(); } if (iAFN == "0A" && iFN == "0089") { this.giForm = new AFN04_89(); } if (iAFN == "0B") { this.giForm = new DataParse(); } if (iAFN == "0C") { this.giForm = new DataParse(); } if (iAFN == "0D") { this.giForm = new DataParse(); } if (iAFN == "0E") { this.giForm = new DataParse(); } if (iAFN == "10") { this.giForm = new DataParse(); } if (this.IsCustomize) { this.giForm = new DataParse(); } } if (this.giForm != null) { if (!string.IsNullOrEmpty(this.CaptionText)) { iForm expr_CBE = this.giForm; expr_CBE.Text = expr_CBE.Text + " " + this.CaptionText; } this.giForm.IsCustomize = this.IsCustomize; this.giForm.CustomizeItems = this.CustomizeItems; this.giForm.AFN = iAFN; this.giForm.FN = iFN; this.giForm.Data = iValues; this.giForm.NeedSave = false; this.giForm.Data = iValues; this.giForm.SetText(); this.giForm.ShowDialog(); this.giForm = null; } }
public string CreateForm(string iAFN, string iFN, string iValues) { string result = string.Empty; if (iAFN == "03" && iFN == "0001") { this.giForm = new AFN03_01(); } if (iAFN == "06" && (iFN == "0001" | iFN == "0002" | iFN == "0003" | iFN == "0004")) { this.giForm = new AFN06_01(); } if (iAFN == "0E" && (iFN == "0001" | iFN == "0002")) { this.giForm = new AFN0E_01(); } if (iAFN == "0D" && (iFN == "0001" | iFN == "0002" | iFN == "0003" | iFN == "0004" | iFN == "0005" | iFN == "0006" | iFN == "0007" | iFN == "0008" | iFN == "0009" | iFN == "0010" | iFN == "0011" | iFN == "0012" | iFN == "0013" | iFN == "0014" | iFN == "0015" | iFN == "0016" | iFN == "0017" | iFN == "0018" | iFN == "0019" | iFN == "0020" | iFN == "0021" | iFN == "0022" | iFN == "0023" | iFN == "0024" | iFN == "0025" | iFN == "0026" | iFN == "0027" | iFN == "0028" | iFN == "0029" | iFN == "0030" | iFN == "0031" | iFN == "0032" | iFN == "0033" | iFN == "0034" | iFN == "0035" | iFN == "0036" | iFN == "0037" | iFN == "0038" | iFN == "0039" | iFN == "0040" | iFN == "0051" | iFN == "0052" | iFN == "0053" | iFN == "0054" | iFN == "0055" | iFN == "0056" | iFN == "0057" | iFN == "0058" | iFN == "0059" | iFN == "0060" | iFN == "0061" | iFN == "0062" | iFN == "0063" | iFN == "0064" | iFN == "0065" | iFN == "0066" | iFN == "0113" | iFN == "0114" | iFN == "0115" | iFN == "0116" | iFN == "0117" | iFN == "0118" | iFN == "0119" | iFN == "0120" | iFN == "0121" | iFN == "0122" | iFN == "0123" | iFN == "0124" | iFN == "0125" | iFN == "0126" | iFN == "0127" | iFN == "0128" | iFN == "0129" | iFN == "0130" | iFN == "0154" | iFN == "0155" | iFN == "0156" | iFN == "0157" | iFN == "0158" | iFN == "0159" | iFN == "0160" | iFN == "0161" | iFN == "0162" | iFN == "0163" | iFN == "0164" | iFN == "0165" | iFN == "0166" | iFN == "0167" | iFN == "0168" | iFN == "0169" | iFN == "0170" | iFN == "0171" | iFN == "0172" | iFN == "0173" | iFN == "0174" | iFN == "0175" | iFN == "0176" | iFN == "0177" | iFN == "0178" | iFN == "0179" | iFN == "0180" | iFN == "0181" | iFN == "0182" | iFN == "0183" | iFN == "0184" | iFN == "0185" | iFN == "0186" | iFN == "0187" | iFN == "0188" | iFN == "0189" | iFN == "0190" | iFN == "0191" | iFN == "0192" | iFN == "0193" | iFN == "0194" | iFN == "0195" | iFN == "0196" | iFN == "0197" | iFN == "0198" | iFN == "0199" | iFN == "0200" | iFN == "0201" | iFN == "0202" | iFN == "0203" | iFN == "0204" | iFN == "0205" | iFN == "0206" | iFN == "0207" | iFN == "0208" | iFN == "0209" | iFN == "0210" | iFN == "0211" | iFN == "0212" | iFN == "0213" | iFN == "0214" | iFN == "0215" | iFN == "0216")) { this.giForm = new AFN0D_01(); } if (iAFN == "0D" && (iFN == "0073" | iFN == "0074" | iFN == "0075" | iFN == "0076" | iFN == "0077" | iFN == "0078" | iFN == "0079" | iFN == "0080" | iFN == "0081" | iFN == "0082" | iFN == "0083" | iFN == "0084" | iFN == "0085" | iFN == "0086" | iFN == "0087" | iFN == "0088" | iFN == "0089" | iFN == "0090" | iFN == "0091" | iFN == "0092" | iFN == "0093" | iFN == "0094" | iFN == "0095" | iFN == "0096" | iFN == "0097" | iFN == "0098" | iFN == "0099" | iFN == "0100" | iFN == "0101" | iFN == "0102" | iFN == "0103" | iFN == "0104" | iFN == "0105" | iFN == "0106" | iFN == "0107" | iFN == "0108" | iFN == "0109" | iFN == "0110" | iFN == "0138" | iFN == "0145" | iFN == "0146" | iFN == "0147" | iFN == "0148" | iFN == "0217" | iFN == "0218")) { this.giForm = new AFN0D_73(); } if (iAFN == "0B" && iFN == "0002") { this.giForm = new AFN0B_02(); } if (iAFN == "0A" && iFN == "0010") { this.giForm = new AFN0A_10(); this.giForm.Len = 2; } if (iAFN == "0A" && (iFN == "0011" | iFN == "0013" | iFN == "0014" | iFN == "0015" | iFN == "0033" | iFN == "0034")) { this.giForm = new AFN0A_10(); this.giForm.Len = 1; } if (iAFN == "0A" && (iFN == "0038" | iFN == "0039")) { this.giForm = new AFN0A_38(); } if (iAFN == "04" && iFN == "0001") { this.giForm = new AFN04_01(); } if (iAFN == "04" && iFN == "0002") { this.giForm = new AFN04_02(); } if (iAFN == "04" && iFN == "0003") { this.giForm = new AFN04_03(); } if (iAFN == "04" && iFN == "0004") { this.giForm = new AFN04_04(); } if (iAFN == "04" && iFN == "0005") { this.giForm = new AFN04_05(); } if (iAFN == "04" && iFN == "0006") { this.giForm = new AFN04_06(); } if (iAFN == "04" && iFN == "0007") { this.giForm = new AFN04_07(); } if (iAFN == "04" && iFN == "0008") { this.giForm = new AFN04_08(); } if (iAFN == "04" && iFN == "0009") { this.giForm = new AFN04_09(); } if (iAFN == "04" && iFN == "0010") { this.giForm = new AFN04_10(); } if (iAFN == "04" && iFN == "0011") { this.giForm = new AFN04_11(); } if (iAFN == "04" && iFN == "0012") { this.giForm = new AFN04_12(); } if (iAFN == "04" && iFN == "0013") { this.giForm = new AFN04_13(); } if (iAFN == "04" && iFN == "0014") { this.giForm = new AFN04_14(); } if (iAFN == "04" && iFN == "0015") { this.giForm = new AFN04_15(); } if (iAFN == "04" && iFN == "0016") { this.giForm = new AFN04_16(); } if (iAFN == "04" && iFN == "0017") { this.giForm = new AFN04_17(); } if (iAFN == "04" && iFN == "0018") { this.giForm = new AFN04_18(); } if (iAFN == "04" && (iFN == "0019" | iFN == "0020")) { this.giForm = new AFN04_19(); } if (iAFN == "04" && iFN == "0021") { this.giForm = new AFN04_21(); } if (iAFN == "04" && iFN == "0022") { this.giForm = new AFN04_22(); } if (iAFN == "04" && iFN == "0023") { this.giForm = new AFN04_23(); } if (iAFN == "04" && iFN == "0025") { this.giForm = new AFN04_25(); } if (iAFN == "04" && iFN == "0026") { this.giForm = new AFN04_26(); } if (iAFN == "04" && iFN == "0027") { this.giForm = new AFN04_27(); } if (iAFN == "04" && iFN == "0028") { this.giForm = new AFN04_28(); } if (iAFN == "04" && iFN == "0029") { this.giForm = new AFN04_29(); } if (iAFN == "04" && iFN == "0030") { this.giForm = new AFN04_30(); } if (iAFN == "04" && iFN == "0031") { this.giForm = new AFN04_31(); } if (iAFN == "04" && iFN == "0033") { this.giForm = new AFN04_33(); } if (iAFN == "04" && iFN == "0034") { this.giForm = new AFN04_34(); } if (iAFN == "04" && iFN == "0035") { this.giForm = new AFN04_35(); } if (iAFN == "04" && iFN == "0036") { this.giForm = new AFN04_36(); } if (iAFN == "04" && iFN == "0037") { this.giForm = new AFN04_37(); } if (iAFN == "04" && (iFN == "0038" | iFN == "0039")) { this.giForm = new AFN04_38(); } if (iAFN == "04" && iFN == "0041") { this.giForm = new AFN04_41(); } if (iAFN == "04" && iFN == "0042") { this.giForm = new AFN04_42(); } if (iAFN == "04" && iFN == "0043") { this.giForm = new AFN04_43(); } if (iAFN == "04" && iFN == "0044") { this.giForm = new AFN04_44(); } if (iAFN == "04" && iFN == "0045") { this.giForm = new AFN04_45(); } if (iAFN == "04" && iFN == "0046") { this.giForm = new AFN04_46(); } if (iAFN == "04" && iFN == "0047") { this.giForm = new AFN04_47(); } if (iAFN == "04" && iFN == "0048") { this.giForm = new AFN04_48(); } if (iAFN == "04" && iFN == "0049") { this.giForm = new AFN04_49(); } if (iAFN == "04" && iFN == "0057") { this.giForm = new AFN04_57(); } if (iAFN == "04" && iFN == "0058") { this.giForm = new AFN04_58(); } if (iAFN == "04" && iFN == "0059") { this.giForm = new AFN04_59(); } if (iAFN == "04" && iFN == "0060") { this.giForm = new AFN04_60(); } if (iAFN == "04" && iFN == "0061") { this.giForm = new AFN04_61(); } if (iAFN == "04" && (iFN == "0065" | iFN == "0066")) { this.giForm = new AFN04_65(); } if (iAFN == "04" && (iFN == "0067" | iFN == "0068")) { this.giForm = new AFN04_67(); } if (iAFN == "04" && iFN == "0073") { this.giForm = new AFN04_73(); } if (iAFN == "04" && iFN == "0074") { this.giForm = new AFN04_74(); } if (iAFN == "04" && iFN == "0075") { this.giForm = new AFN04_75(); } if (iAFN == "04" && iFN == "0076") { this.giForm = new AFN04_76(); } if (iAFN == "04" && iFN == "0081") { this.giForm = new AFN04_81(); } if (iAFN == "04" && iFN == "0082") { this.giForm = new AFN04_81(); } if (iAFN == "04" && iFN == "0083") { this.giForm = new AFN04_83(); } if (iAFN == "04" && iFN == "0085") { this.giForm = new AFN04_85(); } if (iAFN == "04" && iFN == "0089") { this.giForm = new AFN04_89(); } if (iAFN == "05" && iFN == "0001") { this.giForm = new AFN05_01(); } if (iAFN == "05" && iFN == "0009") { this.giForm = new AFN05_09(); } if (iAFN == "05" && iFN == "0012") { this.giForm = new AFN05_12(); } if (iAFN == "05" && iFN == "0025") { this.giForm = new AFN05_25(); } if (iAFN == "05" && iFN == "0031") { this.giForm = new AFN05_31(); } if (iAFN == "05" && iFN == "0032") { this.giForm = new AFN05_32(); } if (iAFN == "05" && (iFN == "0041" | iFN == "0042")) { this.giForm = new AFN05_41(); } if (iAFN == "05" && (iFN == "0049" | iFN == "0050" | iFN == "0051" | iFN == "0052" | iFN == "0053")) { this.giForm = new AFN05_49(); } if (iAFN == "05" && iFN == "0059") { this.giForm = new AFN05_59(); } if (iAFN == "10" && iFN == "0001") { this.giForm = new AFN10_01(); } if (iAFN == "10" && iFN == "0009") { this.giForm = new AFN10_09(); } if (iAFN == "10" && iFN == "0010") { this.giForm = new AFN10_10(); } if (iAFN == "10" && iFN == "0011") { this.giForm = new AFN10_11(); } if (this.IsCustomize) { this.giForm = new CustomizeInput(); } if (this.giForm != null) { if (!string.IsNullOrEmpty(this.CaptionText)) { iForm expr_1825 = this.giForm; expr_1825.Text = expr_1825.Text + " " + this.CaptionText; } this.giForm.AFN = iAFN; this.giForm.FN = iFN; this.giForm.IsCustomize = this.IsCustomize; this.giForm.CustomizeItems = this.CustomizeItems; this.giForm.NeedSave = true; this.giForm.Data = iValues; this.giForm.SetText(); this.giForm.ShowDialog(); result = this.giForm.Data; this.giForm = null; } return(result); }
public static string GetData(string AFN, string FN) { iForm iForm = null; string text = AFN.ToUpper(); string text2 = FN.ToUpper(); string result = string.Empty; if (text == "03" && text2 == "0001") { iForm = new AFN03_01(); } if (text == "06" && (text2 == "0001" | text2 == "0002" | text2 == "0003" | text2 == "0004")) { iForm = new AFN06_01(); } if (text == "0E" && (text2 == "0001" | text2 == "0002")) { iForm = new AFN0E_01(); } if (text == "0D" && (text2 == "0001" | text2 == "0002" | text2 == "0003" | text2 == "0004" | text2 == "0005" | text2 == "0006" | text2 == "0007" | text2 == "0008" | text2 == "0009" | text2 == "0010" | text2 == "0011" | text2 == "0012" | text2 == "0013" | text2 == "0014" | text2 == "0015" | text2 == "0016" | text2 == "0017" | text2 == "0018" | text2 == "0019" | text2 == "0020" | text2 == "0021" | text2 == "0022" | text2 == "0023" | text2 == "0024" | text2 == "0025" | text2 == "0026" | text2 == "0027" | text2 == "0028" | text2 == "0029" | text2 == "0030" | text2 == "0031" | text2 == "0032" | text2 == "0033" | text2 == "0034" | text2 == "0035" | text2 == "0036" | text2 == "0037" | text2 == "0038" | text2 == "0039" | text2 == "0040" | text2 == "0051" | text2 == "0052" | text2 == "0053" | text2 == "0054" | text2 == "0055" | text2 == "0056" | text2 == "0057" | text2 == "0058" | text2 == "0059" | text2 == "0060" | text2 == "0061" | text2 == "0062" | text2 == "0063" | text2 == "0064" | text2 == "0065" | text2 == "0066" | text2 == "0113" | text2 == "0114" | text2 == "0115" | text2 == "0116" | text2 == "0117" | text2 == "0118" | text2 == "0119" | text2 == "0120" | text2 == "0121" | text2 == "0122" | text2 == "0123" | text2 == "0124" | text2 == "0125" | text2 == "0126" | text2 == "0127" | text2 == "0128" | text2 == "0129" | text2 == "0130" | text2 == "0154" | text2 == "0155" | text2 == "0156" | text2 == "0157" | text2 == "0158" | text2 == "0159" | text2 == "0160" | text2 == "0161" | text2 == "0162" | text2 == "0163" | text2 == "0164" | text2 == "0165" | text2 == "0166" | text2 == "0167" | text2 == "0168" | text2 == "0169" | text2 == "0170" | text2 == "0171" | text2 == "0172" | text2 == "0173" | text2 == "0174" | text2 == "0175" | text2 == "0176" | text2 == "0177" | text2 == "0178" | text2 == "0179" | text2 == "0180" | text2 == "0181" | text2 == "0182" | text2 == "0183" | text2 == "0184" | text2 == "0185" | text2 == "0186" | text2 == "0187" | text2 == "0188" | text2 == "0189" | text2 == "0190" | text2 == "0191" | text2 == "0192" | text2 == "0193" | text2 == "0194" | text2 == "0195" | text2 == "0196" | text2 == "0197" | text2 == "0198" | text2 == "0199" | text2 == "0200" | text2 == "0201" | text2 == "0202" | text2 == "0203" | text2 == "0204" | text2 == "0205" | text2 == "0206" | text2 == "0207" | text2 == "0208" | text2 == "0209" | text2 == "0210" | text2 == "0211" | text2 == "0212" | text2 == "0213" | text2 == "0214" | text2 == "0215" | text2 == "0216")) { iForm = new AFN0D_01(); } if (text == "0D" && (text2 == "0073" | text2 == "0074" | text2 == "0075" | text2 == "0076" | text2 == "0077" | text2 == "0078" | text2 == "0079" | text2 == "0080" | text2 == "0081" | text2 == "0082" | text2 == "0083" | text2 == "0084" | text2 == "0085" | text2 == "0086" | text2 == "0087" | text2 == "0088" | text2 == "0089" | text2 == "0090" | text2 == "0091" | text2 == "0092" | text2 == "0093" | text2 == "0094" | text2 == "0095" | text2 == "0096" | text2 == "0097" | text2 == "0098" | text2 == "0099" | text2 == "0100" | text2 == "0101" | text2 == "0102" | text2 == "0103" | text2 == "0104" | text2 == "0105" | text2 == "0106" | text2 == "0107" | text2 == "0108" | text2 == "0109" | text2 == "0110" | text2 == "0138" | text2 == "0145" | text2 == "0146" | text2 == "0147" | text2 == "0148" | text2 == "0217" | text2 == "0218")) { iForm = new AFN0D_73(); } if (text == "0A" && text2 == "0010") { iForm = new AFN0A_10(); iForm.Len = 2; } if (text == "0A" && (text2 == "0011" | text2 == "0013" | text2 == "0014" | text2 == "0015" | text2 == "0033" | text2 == "0034")) { iForm = new AFN0A_10(); iForm.Len = 1; } if (text == "0A" && (text2 == "0038" | text2 == "0039")) { iForm = new AFN0A_38(); } if (text == "04" && text2 == "0001") { iForm = new AFN04_01(); } if (text == "04" && text2 == "0002") { iForm = new AFN04_02(); } if (text == "04" && text2 == "0003") { iForm = new AFN04_03(); } if (text == "04" && text2 == "0004") { iForm = new AFN04_04(); } if (text == "04" && text2 == "0005") { iForm = new AFN04_05(); } if (text == "04" && text2 == "0006") { iForm = new AFN04_06(); } if (text == "04" && text2 == "0007") { iForm = new AFN04_07(); } if (text == "04" && text2 == "0008") { iForm = new AFN04_08(); } if (text == "04" && text2 == "0009") { iForm = new AFN04_09(); } if (text == "04" && text2 == "0010") { iForm = new AFN04_10(); } if (text == "04" && text2 == "0011") { iForm = new AFN04_11(); } if (text == "04" && text2 == "0012") { iForm = new AFN04_12(); } if (text == "04" && text2 == "0013") { iForm = new AFN04_13(); } if (text == "04" && text2 == "0014") { iForm = new AFN04_14(); } if (text == "04" && text2 == "0015") { iForm = new AFN04_15(); } if (text == "04" && text2 == "0016") { iForm = new AFN04_16(); } if (text == "04" && text2 == "0017") { iForm = new AFN04_17(); } if (text == "04" && text2 == "0018") { iForm = new AFN04_18(); } if (text == "04" && (text2 == "0019" | text2 == "0020")) { iForm = new AFN04_19(); } if (text == "04" && text2 == "0021") { iForm = new AFN04_21(); } if (text == "04" && text2 == "0022") { iForm = new AFN04_22(); } if (text == "04" && text2 == "0023") { iForm = new AFN04_23(); } if (text == "04" && text2 == "0025") { iForm = new AFN04_25(); } if (text == "04" && text2 == "0026") { iForm = new AFN04_26(); } if (text == "04" && text2 == "0027") { iForm = new AFN04_27(); } if (text == "04" && text2 == "0028") { iForm = new AFN04_28(); } if (text == "04" && text2 == "0029") { iForm = new AFN04_29(); } if (text == "04" && text2 == "0030") { iForm = new AFN04_30(); } if (text == "04" && text2 == "0031") { iForm = new AFN04_31(); } if (text == "04" && text2 == "0033") { iForm = new AFN04_33(); } if (text == "04" && text2 == "0034") { iForm = new AFN04_34(); } if (text == "04" && text2 == "0035") { iForm = new AFN04_35(); } if (text == "04" && text2 == "0036") { iForm = new AFN04_36(); } if (text == "04" && text2 == "0037") { iForm = new AFN04_37(); } if (text == "04" && (text2 == "0038" | text2 == "0039")) { iForm = new AFN04_38(); } if (text == "04" && text2 == "0041") { iForm = new AFN04_41(); } if (text == "04" && text2 == "0042") { iForm = new AFN04_42(); } if (text == "04" && text2 == "0043") { iForm = new AFN04_43(); } if (text == "04" && text2 == "0044") { iForm = new AFN04_44(); } if (text == "04" && text2 == "0045") { iForm = new AFN04_45(); } if (text == "04" && text2 == "0046") { iForm = new AFN04_46(); } if (text == "04" && text2 == "0047") { iForm = new AFN04_47(); } if (text == "04" && text2 == "0048") { iForm = new AFN04_48(); } if (text == "04" && text2 == "0049") { iForm = new AFN04_49(); } if (text == "04" && text2 == "0057") { iForm = new AFN04_57(); } if (text == "04" && text2 == "0058") { iForm = new AFN04_58(); } if (text == "04" && text2 == "0059") { iForm = new AFN04_59(); } if (text == "04" && text2 == "0060") { iForm = new AFN04_60(); } if (text == "04" && text2 == "0061") { iForm = new AFN04_61(); } if (text == "04" && (text2 == "0065" | text2 == "0066")) { iForm = new AFN04_65(); } if (text == "04" && (text2 == "0067" | text2 == "0068")) { iForm = new AFN04_67(); } if (text == "04" && text2 == "0073") { iForm = new AFN04_73(); } if (text == "04" && text2 == "0074") { iForm = new AFN04_74(); } if (text == "04" && text2 == "0075") { iForm = new AFN04_75(); } if (text == "04" && text2 == "0076") { iForm = new AFN04_76(); } if (text == "04" && text2 == "0081") { iForm = new AFN04_81(); } if (text == "04" && text2 == "0082") { iForm = new AFN04_81(); } if (text == "04" && text2 == "0083") { iForm = new AFN04_83(); } if (text == "04" && text2 == "0085") { iForm = new AFN04_85(); } if (text == "04" && text2 == "0089") { iForm = new AFN04_89(); } if (text == "05" && text2 == "0001") { iForm = new AFN05_01(); } if (text == "05" && text2 == "0009") { iForm = new AFN05_09(); } if (text == "05" && text2 == "0012") { iForm = new AFN05_12(); } if (text == "05" && text2 == "0025") { iForm = new AFN05_25(); } if (text == "05" && text2 == "0032") { iForm = new AFN05_32(); } if (text == "05" && (text2 == "0041" | text2 == "0042")) { iForm = new AFN05_41(); } if (text == "05" && (text2 == "0049" | text2 == "0050" | text2 == "0051" | text2 == "0052" | text2 == "0053")) { iForm = new AFN05_49(); } if (text == "05" && text2 == "0059") { iForm = new AFN05_59(); } if (text == "10" && text2 == "0001") { iForm = new AFN10_01(); } if (text == "10" && text2 == "0009") { iForm = new AFN10_09(); } if (text == "10" && text2 == "0010") { iForm = new AFN10_10(); } if (text == "10" && text2 == "0011") { iForm = new AFN10_11(); } if (iForm != null) { iForm.AFN = text; iForm.FN = text2; iForm.NeedSave = true; iForm.SetText(); iForm.ShowDialog(); result = iForm.Data; } return(result); }