public FrmCrystalReport(VehicleExportParkTicket vehicleTicket, UserInfo userInfo) { InitializeComponent(); _userInfo = userInfo; crystalReportViewer1.ReportSource = vehicleTicket; this.WindowState = FormWindowState.Maximized; }
public frmExport(UserInfo userInfo, int mode, int declerationID) { InitializeComponent(); _userInfo = userInfo; _mode = mode; _declerationID = declerationID; }
private void btnLogin_Click(object sender, EventArgs e) { try { //logger.Info("btnLogin_Click"); if (Validate()) { var objUserInfo = new UserInfo { UserName = txtUsername.Text.Trim(), Password = txtPassword.Text.Trim() }; var userInfo = _userBOL.GetUser(objUserInfo); if (userInfo != null) // Login sucessfully { // Redirect to the main form var mainForm = new frmMainForm(userInfo); mainForm.WindowState = FormWindowState.Maximized; mainForm.Show(); this.Hide(); } else { MessageBox.Show(ConstantInfo.MESSAGE_LOGIN_FAIL, "Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } } } catch (Exception ex) { logger.Error(ex.ToString()); if (GlobalInfo.IsDebug) MessageBox.Show(ex.ToString()); } }
public frmCompletedCustomsProcedures(UserInfo userInfo, Form mainForm) { InitializeComponent(); _userInfo = userInfo; //InitialPermission(); _mainForm = mainForm; }
public FrmDecleExportOption(UserInfo userInfo, Common.DeclerationOptionType declerationOptionType, Form mainForm) { InitializeComponent(); _userInfo = userInfo; _mainForm = mainForm; _declerationOptionType = declerationOptionType; }
/// <summary> /// Insert User /// </summary> /// <param name="userInfo">UserInfo object</param> /// <returns>Number of rows are effected</returns> public int Insert(UserInfo userInfo) { // Encode password & username userInfo.Password = Common.Encode(userInfo.Password); userInfo.UserName = userInfo.UserName; return _userDAL.Insert(userInfo); }
public FrmCrystalReport(HandoverStatisticReport report, UserInfo userInfo) { InitializeComponent(); _userInfo = userInfo; crystalReportViewer1.ReportSource = report; this.WindowState = FormWindowState.Maximized; }
public frmUpdateDeclarationFiles(UserInfo userInfo, frmDeclarationFilesManagement frmParent, long declarationID) { InitializeComponent(); _userInfo = userInfo; _frmParent = frmParent; _declarationID = declarationID; }
public frmExport(UserInfo userInfo, int mode, Form parrent) { InitializeComponent(); _userInfo = userInfo; _mode = mode; _parent = parrent; }
public frmDeclerationOptionInfo(UserInfo userInfo, Form mainForm, Common.DeclerationOptionType declerationOptionType) { InitializeComponent(); _userInfo = userInfo; _mainForm = mainForm; _declerationOptionType = declerationOptionType; }
public frmVehicleSearch(UserInfo userInfo, Form mainForm) { InitializeComponent(); _userInfo = userInfo; //InitialPermission(); _mainForm = mainForm; }
public frmListUserToAddInGroup(Mode mode, int groupID, UserInfo userInfo) { InitializeComponent(); _userInfo = userInfo; _groupID = groupID; _mode = mode; }
/// <summary> /// Get UserInformation /// </summary> /// <param name="userInfo"></param> /// <returns></returns> public UserInfo GetUser(UserInfo userInfo) { // Encode the password & username userInfo.Password = Common.Encode(userInfo.Password); userInfo.UserName =userInfo.UserName; return _userDAL.GetUser(userInfo); }
public FrmDecleExportOption(Form mainForm, UserInfo userInfo, long declerationID, Common.DeclerationOptionType declerationOptionType) { InitializeComponent(); _userInfo = userInfo; _declerationID = declerationID; _mainForm = mainForm; _declerationOptionType = declerationOptionType; }
public FrmDeclarationFilesGetLoan(UserInfo userInfo, frmDeclarationFilesManagement frmParent, long declarationID, tblDeclaration declration) { InitializeComponent(); _userInfo = userInfo; _frmParent = frmParent; _declarationID = declarationID; _declration = declration; }
//public FrmAlert(UserInfo userInfo, long vehicleID, int checkID) //{ // InitializeComponent(); // _userInfo = userInfo; // _vehicleID = vehicleID; // _checkID = checkID; //} public FrmAlert(UserInfo userInfo, long vehicleID, int checkID, int checkType) { InitializeComponent(); _userInfo = userInfo; _vehicleID = vehicleID; _checkID = checkID; _checkType = checkType; }
public frmThemToaTau(short mode, UserInfo userInfo, ref List<tblToaTau> listToaTau) { InitializeComponent(); _userInfo = userInfo; _mode = mode; _listToaTau = listToaTau; //_TrainId = trainId; }
public frmVehicle(int mode, int vehicleID, UserInfo userInfo) { InitializeComponent(); _mode = mode; _vehicleID = vehicleID; _userInfo = userInfo; //InitialPermission(); }
public FrmAddCheck(UserInfo userInfo, int mode, long checkID) { InitializeComponent(); _userInfo = userInfo; _mode = mode; _checkID = checkID; }
public FrmAddVehicleExportParking(UserInfo userInfor) { InitializeComponent(); LoadPrintSetting(); grdVehicle.AutoGenerateColumns = false; _userInfo = userInfor; }
public FrmReportImportToReExport(Form mainFrom, UserInfo userInfo, int type) { _userInfo = userInfo; _type = type; InitializeComponent(); _mainForm = mainFrom; }
public FrmListGroup(UserInfo userInfo) { InitializeComponent(); _userInfo = userInfo; btnAdd.Enabled = _userInfo.UserPermission.Contains(ConstantInfo.PERMISSON_TAO_MOI_NHOM_NGUOI_DUNG); btnUpdate.Enabled = _userInfo.UserPermission.Contains(ConstantInfo.PERMISSON_CAP_NHAT_NHOM_NGUOI_DUNG); btnDelete.Enabled = _userInfo.UserPermission.Contains(ConstantInfo.PERMISSON_XOA_NHOM_NGUOI_DUNG); }
public frmDeclarationManagement(UserInfo userInfo,bool isSecondHandover = false, bool isManagementMode = false) { InitializeComponent(); _userInfo = userInfo; _isSecondHandover = isSecondHandover; _isManagementMode = isManagementMode; Init(); }
public frmDeclarationFee(UserInfo userInfo, int type, long declarationId, int declarationNumber) { InitializeComponent(); _userinfo = userInfo; _type = type; _declarationId = declarationId; _declarationNumber = declarationNumber; Init(); }
public FrmAddGate(String gateCode, int mode, UserInfo userInfo, FrmListGate frmListGate) { _userInfo = userInfo; _gateCode = gateCode; _mode = mode; _frmListGate = frmListGate; InitializeComponent(); }
public FrmAddCompany(String companyCode, int mode, UserInfo userInfo, FrmListCompany frmListCompany) { _userInfo = userInfo; _companyCode = companyCode; _mode = mode; _frmListCompany = frmListCompany; InitializeComponent(); }
public FrmCheck(UserInfo userInfo, long vehicleID, int mode, int vehicleCheckID, int checkID) { InitializeComponent(); _userInfo = userInfo; _vehicleID = vehicleID; _mode = mode; _vehicleCheckID = vehicleCheckID; _checkID = checkID; }
public frmReport(Form mainFrom, UserInfo userInfo, int type) { _userInfo = userInfo; _type = type; InitializeComponent(); InitializeReportType(); _mainForm = mainFrom; }
public FrmAddCustoms(String customsCode, int mode, UserInfo userInfo, FrmListCustoms frmListCustoms) { _userInfo = userInfo; _customsCode = customsCode; _mode = mode; _frmListCustoms = frmListCustoms; InitializeComponent(); }
public FrmListGate(UserInfo userInfo) { InitializeComponent(); _userInfo = userInfo; dataSet2.tblGateType.Rows.Add(-1, "Tất cả"); dataSet2.tblGateType.Rows.Add(0, "CK xuất"); dataSet2.tblGateType.Rows.Add(1, "CK nhập"); }