public void CreateEmployee(EmployeeDS ds, int[] roles) { EmployeeDALC edalc = new EmployeeDALC(); edalc.Update(ds); AuthorizationDALC adalc = new AuthorizationDALC(); adalc.UpdateRoles(roles, ds.Employee[0].EmpID); }
public QueryDALC(string connectionString) : base(connectionString) { tableName = "Документы.dbo.vwЗапросы"; idField = "КодЗапроса"; nameField = "Запрос"; employeeData = new EmployeeDALC(null); empIDField = employeeData.IDField; }
public void UpdateEmployees(EmployeeDS ds, int[] roles, int empid) { EmployeeDALC edalc = new EmployeeDALC(); edalc.Update(ds); AuthorizationDALC adalc = new AuthorizationDALC(); adalc.UpdateRoles(roles, empid); }
public StampRightsDALC(string connectionString) : base(connectionString) { tableName = "vwПраваШтампы"; idField = "КодШтампа"; giveRightsField = "ДаватьПраваЗамещающим"; var data = new EmployeeDALC(null); employeeIDField = data.IDField; }
public string GetEditor(int id, bool fullName) { object result = GetField(editorField, id); if (result != null && result is int) { var empDALC = new EmployeeDALC(connectionString); return(empDALC.GetEmployee((int)result, fullName)); } return(null); }
public MailingListDALC(string connectionString) : base(connectionString) { tableName = "ƒокументы.dbo.vw—писки–ассылки"; idField = " од—писка–ассылки"; nameField = "—писок–ассылки"; var employeeData = new EmployeeDALC(null); empIDField = employeeData.IDField; empTable = employeeData.TableName; }
public PersonDALC(string connectionString) : base(connectionString) { tableName = "—правочники.dbo.vwЋица"; idField = " одЋица"; nameField = " личка"; empData = new EmployeeDALC(null); employeeTable = empData.TableName; employeeIDField = empData.IDField; employeeField = empData.NameField; }
public WorkDocDALC(string connectionString) : base(connectionString) { tableName = "Документы.dbo.vwДокументыВРаботе"; idField = "КодДокументаВРаботе"; nameField = null; docData = new DocumentDALC(null); docIDField = docData.IDField; employeeData = new EmployeeDALC(null); empIDField = employeeData.IDField; folderData = new FolderDALC(null); folderIDField = folderData.IDField; }
public DocLinksDALC(string connectionString) : base(connectionString) { tableName = "vwСвязиДокументов"; idField = "КодСвязиДокументов"; nameField = ""; FieldDALC fieldData; EmployeeDALC empData; MessageDALC messData; DocTypeDALC typesData; fieldData = new FieldDALC(connectionString); fieldTable = fieldData.TableName; subFieldField = fieldData.NameField; subFieldOrderField = fieldData.PositionField; var docData = new DocumentDALC(connectionString); docTable = docData.TableName; documentIDField = docData.IDField; documentNameField = docData.NameField; documentDateField = docData.DateField; documentDescriptionField = docData.DescriptionField; spDocRights = docData.SpDocRights; inWorkField = docData.InWorkField; messData = new MessageDALC(connectionString); spSendMessage = messData.SpSendMessage; empData = new EmployeeDALC(connectionString); empIDField = empData.IDField; empField = Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName.Equals("ru") ? empData.NameField : empData.EmloyeeField; empTable = empData.TableName; typesData = new DocTypeDALC(connectionString); typesTable = typesData.TableName; typesIDField = typesData.IDField; typesNameField = typesData.NameField; typesNameEngField = typesData.TypeDocField; }
public FolderDALC(string connectionString) : base(connectionString) { tableName = "Документы.dbo.vwПапкиДокументов"; idField = "КодПапкиДокументов"; nameField = "ПапкаДокументов"; employeeData = new EmployeeDALC(null); empIDField = employeeData.IDField; selectString = "SELECT " + idField + ", " + nameField + ", " + "ISNULL(" + parentField + ", 0) AS " + parentField + ", " + editorField + ", " + editedField + " FROM " + tableName + " WITH(NOLOCK)"; orderString = " ORDER BY L"; }
public EmployeeParser(EmployeeDALC empData, bool dismiss) { this.empData = empData; Load(dismiss); }
public EmployeeDS GetAllEmployees() { EmployeeDALC edalc = new EmployeeDALC(); return(edalc.GetAllEmployees()); }
public Employee(int id, string shortRusName, string longRusName, string shortEngName, string longEngName, string language, EmployeeDALC empData) : this(id, shortRusName, longRusName, shortEngName, longEngName, empData) { currentLanguage = language; }
public Employee(int id, string shortRusName, string longRusName, string shortEngName, string longEngName, EmployeeDALC empData) : this(id, shortRusName, longRusName, empData) { this.shortEngName = shortEngName; this.longEngName = longEngName; }
public Employee(int id, string shortName, string longName, EmployeeDALC empData) : this(id, empData) { shortRusName = shortName; longRusName = longName; }
public Employee(int id, EmployeeDALC empData) : base(id) { this.empData = empData; }
public static Employee GetSystemEmployee(EmployeeDALC empData) { return(new Employee(empData.GetSystemEmployeeID(), empData)); }