コード例 #1
0
 public int Compare(object x, object y)
 {
     try
     {
         InPatientInfo inpatient1 = x as InPatientInfo;
         InPatientInfo inpatient2 = y as InPatientInfo;
         string        bed_No1    = inpatient1.Sick_Bed_Name;
         string        bed_No2    = inpatient2.Sick_Bed_Name;
         int           count      = 0;
         for (int i = 0; i < bed_No1.Length; i++)
         {
             char a = bed_No1[i];
             char b = bed_No2[i];
             count = a.CompareTo(b);
             if (count > 0 || count < 0)
             {
                 break;
             }
         }
         return(count);
     }
     catch
     {
         return(0);
     }
 }
コード例 #2
0
ファイル: frmSelDiag.cs プロジェクト: zh7262703/Emr_MySql
 public frmSelDiag(Bifrost.InPatientInfo _inpatient)
 {
     InitializeComponent();
     inpatient = _inpatient;
     LoadData();
     list  = new List <DataRow>();
     clist = new List <DataRow>();
 }