public PersSalesReport(DataRow row) { LpuRRList lpuRRList = LpuRRList.GetUniqueInstance(); int idLpuRR; int.TryParse(row[0].ToString(), out idLpuRR); _lpuRR = lpuRRList.GetItem(idLpuRR) as LpuRR; UserList userList = UserList.GetUniqueInstance(); int idUser; int.TryParse(row[1].ToString(), out idUser); _user = userList.GetItem(idUser) as User; RegionRRList regionRRList = RegionRRList.GetUniqueInstance(); int idRegionRR; int.TryParse(row[2].ToString(), out idRegionRR); _regionRR = regionRRList.GetItem(idRegionRR) as RegionRR; int idSDiv; int.TryParse(row[3].ToString(), out idSDiv); _sdiv = (SDiv)idSDiv; int idRD; int.TryParse(row[4].ToString(), out idRD); _rd = userList.GetItem(idRD) as User; int.TryParse(row[5].ToString(), out _year); double.TryParse(row[6].ToString(), out _euro); double.TryParse(row[7].ToString(), out _rub); }
public static RegionRRList GetUniqueInstance() { if (_uniqueInstance == null) _uniqueInstance = new RegionRRList("SF_RegionRR"); return _uniqueInstance; }
public static RegionRRList GetUniqueInstance() { if (_uniqueInstance == null) { _uniqueInstance = new RegionRRList("SF_RegionRR"); } return(_uniqueInstance); }
public UserRight(DataRow row) { int idUser; int.TryParse(row[0].ToString(), out idUser); UserList userList = UserList.GetUniqueInstance(); _user = userList.GetItem(idUser) as User; int idRegionRR; int.TryParse(row[1].ToString(), out idRegionRR); RegionRRList regionRRList = RegionRRList.GetUniqueInstance(); _regionRR = regionRRList.GetItem(idRegionRR) as RegionRR; }
public LpuRR(DataRow row) : base(row) { int idRegionRR; int.TryParse(row[2].ToString(), out idRegionRR); RegionRRList regionRRList = RegionRRList.GetUniqueInstance(); _regionRR = regionRRList.GetItem(idRegionRR) as RegionRR; _fullName = row[3].ToString(); int idStatusLPU; int.TryParse(row[4].ToString(), out idStatusLPU); _statusLPU = (StatusLPU)idStatusLPU; }
public HT_Add_LPU(bool flag_edit = true) { InitializeComponent(); _regionRRList = RegionRRList.GetUniqueInstance(); _lpuRRList = LpuRRList.GetUniqueInstance(); _lpuHTList = LpuRRList.GetUniqueInstance(); _lpuRRController = new LpuRRController(_dgv1); _lpuHTController = new LpuRRController(_dgv2); btnAddUserLPU.Visible = flag_edit; btnDelUserLPU.Visible = flag_edit; globalData.update = false; fillRegion(); globalData.update = true; loadData1(); loadData2(); }
public UserLpuAccess() { InitializeComponent(); _regionRRList = RegionRRList.GetUniqueInstance(); _lpuRRList = LpuRRList.GetUniqueInstance(); _userLpuRRList = UserLpuRRList.GetUniqueInstance(); _userList = UserList.GetUniqueInstance(); _lpuRRController = new LpuRRController(_dgv1); _userLpuRRListController = new UserLpuRRListController(_dgv2); globalData.load = false; cbSDiv.SelectedIndex = 0; globalData.Div = cbSDiv.SelectedItem.ToString(); globalData.load = true; fillRegion(); fillUsers(); }