public ControlCardBlank(SqlTransaction trans, int id, string userName) : base(trans, id, userName) { CardStatus = new CardStatus(trans, CardStatusID, userName); DocStatus = new DocStatus(trans, DocStatusID, userName); ExecutiveDepartment = new Department(trans, ExecutiveDepartmentID, userName); ChildrenControlCards = GetChildren(trans); }
public void InitSubObjects(SqlTransaction trans, string userName) { Head = new Worker(trans, HeadID, userName); Worker = new Worker(trans, WorkerID, userName); HeadResponse = new Worker(trans, HeadResponseID, userName); FixedWorker = new Worker(trans, FixedWorkerID, userName); DocStatusID = (new Document(trans, DocumentID, userName)).DocStatusID; CardStatus = new CardStatus(trans, CardStatusID, userName); DocStatus = new DocStatus(trans, DocStatusID, userName); ExecutiveDepartment = new Department(trans, ExecutiveDepartmentID, userName); }