Example #1
0
 public void SaveCheckedItem(CheckedItemEntity CheckedItem)
 {
     DataAccess.SaveCheckedItem(CheckedItem);
     if (!String.IsNullOrWhiteSpace(CheckedItem.LISCode))
     {
         String[] LisCodes = CheckedItem.LISCode.Split(',');
         using (LISMapDataAccess LISMapDataAccess = new LISMapDataAccess()) {
             LisMapEntity LisMap = new LisMapEntity {
                 Itemid   = CheckedItem.ItemID.Value,
                 ItemName = CheckedItem.ItemName
             };
             if (LisCodes.Length == 1)
             {
                 LisMap.LisItemId1 = LisCodes[0];
             }
             if (LisCodes.Length == 2)
             {
                 LisMap.LisItemId1 = LisCodes[0];
                 LisMap.LisItemId2 = LisCodes[1];
             }
             LISMapDataAccess.SaveLISMap(LisMap);
         }
     }
 }
Example #2
0
 public void SaveLISMap(LisMapEntity LISMap)
 {
     DataAccess.SaveLISMap(LISMap);
 }