コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="_nodeid">模板的ID</param>
        /// <param name="_codetype">分部分项子分部</param>
        /// <param name="_projectno">工程名称</param>
        public ArchiveData_fbfx(string _nodeid, string _codetype, string _projectno)
        {
            ds = treesData.GetTrees(false, _projectno);
            IList <MDL.T_Archive> archiveList = new ERM.BLL.T_Archive_BLL().FindByProjectNO(_projectno);

            ds_Archviedata = (DataSet)archiveList;
            NodeID         = _nodeid;
            codetype       = _codetype;
        }
コード例 #2
0
 /// <summary>
 /// 调整按卷顺序
 /// </summary>
 /// <param name="Node"></param>
 public void MoveArchiveOrderindex(TreeNode Node)  //调整按卷顺序
 {
     if (Node != null)
     {
         BLL.T_Archive_BLL archiveBLL = new ERM.BLL.T_Archive_BLL();
         for (int i = 0; i < Node.Nodes.Count; i++)
         {
             string        ArchiveID  = Node.Nodes[i].Tag.ToString();
             int           orderindex = i + 1;
             MDL.T_Archive archiveMDL = archiveBLL.Find(ArchiveID);
             archiveMDL.OrderIndex = orderindex;
             archiveBLL.Update(archiveMDL);
         }
     }
 }