public FilingSetup(string ID) { InitializeComponent(); if (ID.Length > 4) { lbNoteName.Text = "病人住院号:" + ID; this.Text = "个人归档项目设置"; szlx = "个人"; DepartCode = ThisAddIn.GetDepartCodeByRegistryID(ID); } else { lbNoteName.Text = "科室编码:" + ID; this.Text = "科室归档项目设置"; szlx = "科室"; } RegistryID = ID; LoadPattern(); LoadNotesWithRules(); }