Ejemplo n.º 1
0
 private void AddPRIClolck(DB_Talk.Model.m_Box boxmodel)
 {
     DB_Talk.BLL.m_PRIClock BLL=new DB_Talk.BLL.m_PRIClock();
     for (int i = 0; i < 4; i++)
     {
         List<DB_Talk.Model.m_PRIClock> lst = BLL.GetModelList(
             string.Format(" i_Flag=0 and BoxID='{0}' and i_Level='{1}'",boxmodel.ID,i));
         if (lst.Count == 0)
         {
             DB_Talk.Model.m_PRIClock model = new DB_Talk.Model.m_PRIClock();
             model.BoxID = boxmodel.ID;
             model.i_Level = i;
             model.i_Type = MBoxSDK.ConfigSDK.EnumPriClockType.内部.GetHashCode();
             model.i_Port =0;
             BLL.Add(model);
         }
     }
 }