Example #1
0
 private void LoadAllDeptStore(string drugType, string queryCode)
 {
     try
     {
         if (_listDeptStore.Count > 0)
         {
             foreach (QueryStoreDept storeDept in _listDeptStore)
             {
                 storeDept.StoreDt = YP_Loader.LoadDrugStore(storeDept.DeptDic,
                                                             drugType,
                                                             queryCode);
                 if (storeDept.StoreDt != null)
                 {
                     storeDept.StoreDt.PrimaryKey = new DataColumn[] { storeDept.StoreDt.Columns["MAKERDICID"] };
                 }
             }
         }
     }
     catch (Exception error)
     {
         throw error;
     }
 }