コード例 #1
0
 public FrmCrystalReport(VehicleExportParkTicket vehicleTicket, UserInfo userInfo)
 {
     InitializeComponent();
     _userInfo = userInfo;
     crystalReportViewer1.ReportSource = vehicleTicket;
     this.WindowState = FormWindowState.Maximized;
 }
コード例 #2
0
ファイル: frmExport.cs プロジェクト: gsb123/ecustoms-project
 public frmExport(UserInfo userInfo, int mode, int declerationID)
 {
     InitializeComponent();
     _userInfo = userInfo;
     _mode = mode;
     _declerationID = declerationID;
 }
コード例 #3
0
ファイル: frmLogin.cs プロジェクト: gsb123/ecustoms-project
        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());
            }
        }
コード例 #4
0
 public frmCompletedCustomsProcedures(UserInfo userInfo, Form mainForm)
 {
     InitializeComponent();
     _userInfo = userInfo;
     //InitialPermission();
     _mainForm = mainForm;
 }
コード例 #5
0
 public FrmDecleExportOption(UserInfo userInfo, Common.DeclerationOptionType declerationOptionType, Form mainForm)
 {
     InitializeComponent();
     _userInfo = userInfo;
     _mainForm = mainForm;
     _declerationOptionType = declerationOptionType;
 }
コード例 #6
0
 /// <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);
 }
コード例 #7
0
 public FrmCrystalReport(HandoverStatisticReport report, UserInfo userInfo)
 {
     InitializeComponent();
     _userInfo = userInfo;
     crystalReportViewer1.ReportSource = report;
     this.WindowState = FormWindowState.Maximized;
 }
コード例 #8
0
 public frmUpdateDeclarationFiles(UserInfo userInfo, frmDeclarationFilesManagement frmParent, long declarationID)
 {
     InitializeComponent();
     _userInfo = userInfo;
     _frmParent = frmParent;
     _declarationID = declarationID;
 }
コード例 #9
0
ファイル: frmExport.cs プロジェクト: gsb123/ecustoms-project
 public frmExport(UserInfo userInfo, int mode, Form parrent)
 {
     InitializeComponent();
     _userInfo = userInfo;
     _mode = mode;
     _parent = parrent;
 }
コード例 #10
0
 public frmDeclerationOptionInfo(UserInfo userInfo, Form mainForm, Common.DeclerationOptionType declerationOptionType)
 {
     InitializeComponent();
     _userInfo = userInfo;
     _mainForm = mainForm;
     _declerationOptionType = declerationOptionType;
 }
コード例 #11
0
 public frmVehicleSearch(UserInfo userInfo, Form mainForm)
 {
     InitializeComponent();
     _userInfo = userInfo;
     //InitialPermission();
     _mainForm = mainForm;
 }
コード例 #12
0
 public frmListUserToAddInGroup(Mode mode, int groupID, UserInfo userInfo)
 {
   InitializeComponent();
   _userInfo = userInfo;
   _groupID = groupID;
   _mode = mode;
 }
コード例 #13
0
 /// <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);
 }
コード例 #14
0
 public FrmDecleExportOption(Form mainForm, UserInfo userInfo, long declerationID, Common.DeclerationOptionType declerationOptionType)
 {
     InitializeComponent();
     _userInfo = userInfo;
     _declerationID = declerationID;
     _mainForm = mainForm;
     _declerationOptionType = declerationOptionType;
 }
コード例 #15
0
 public FrmDeclarationFilesGetLoan(UserInfo userInfo, frmDeclarationFilesManagement frmParent, long declarationID, tblDeclaration declration)
 {
     InitializeComponent();
     _userInfo = userInfo;
     _frmParent = frmParent;
     _declarationID = declarationID;
     _declration = declration;
 }
コード例 #16
0
    //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;
    }
コード例 #17
0
 public frmThemToaTau(short mode, UserInfo userInfo, ref List<tblToaTau> listToaTau)
 {
     InitializeComponent();
     _userInfo = userInfo;
     _mode = mode;
     _listToaTau = listToaTau;
     //_TrainId = trainId;
 }
コード例 #18
0
ファイル: frmVehicle.cs プロジェクト: gsb123/ecustoms-project
 public frmVehicle(int mode, int vehicleID, UserInfo userInfo)
 {
     InitializeComponent();
     _mode = mode;
     _vehicleID = vehicleID;
     _userInfo = userInfo;
     //InitialPermission();
 }
コード例 #19
0
        public FrmAddCheck(UserInfo userInfo, int mode, long checkID)
        {

            InitializeComponent();
            _userInfo = userInfo;
            _mode = mode;
            _checkID = checkID;
        }
コード例 #20
0
        public FrmAddVehicleExportParking(UserInfo userInfor)
        {

            InitializeComponent();
            LoadPrintSetting();
            grdVehicle.AutoGenerateColumns = false;
            _userInfo = userInfor;
        }
コード例 #21
0
        public FrmReportImportToReExport(Form mainFrom, UserInfo userInfo, int type)
        {
            _userInfo = userInfo;
            _type = type;
            InitializeComponent();
            _mainForm = mainFrom;

        }
コード例 #22
0
 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);
 }
コード例 #23
0
 public frmDeclarationManagement(UserInfo userInfo,bool isSecondHandover = false, bool isManagementMode = false)
 {
     InitializeComponent();
     _userInfo = userInfo;
     _isSecondHandover = isSecondHandover;
     _isManagementMode = isManagementMode;
     Init();
 }
コード例 #24
0
 public frmDeclarationFee(UserInfo userInfo, int type, long declarationId, int declarationNumber)
 {
     InitializeComponent();
     _userinfo = userInfo;
     _type = type;
     _declarationId = declarationId;
     _declarationNumber = declarationNumber;
     Init();
 }
コード例 #25
0
        public FrmAddGate(String gateCode, int mode, UserInfo userInfo, FrmListGate frmListGate)
        {
            _userInfo = userInfo;
            _gateCode = gateCode;
            _mode = mode;
            _frmListGate = frmListGate;

            InitializeComponent();
        }
コード例 #26
0
        public FrmAddCompany(String companyCode, int mode, UserInfo userInfo, FrmListCompany frmListCompany)
        {
            _userInfo = userInfo;
            _companyCode = companyCode;
            _mode = mode;
            _frmListCompany = frmListCompany;

            InitializeComponent();
        }
コード例 #27
0
 public FrmCheck(UserInfo userInfo, long vehicleID, int mode, int vehicleCheckID, int checkID)
 {
     InitializeComponent();
     _userInfo = userInfo;
     _vehicleID = vehicleID;
     _mode = mode;
     _vehicleCheckID = vehicleCheckID;
     _checkID = checkID;
 }
コード例 #28
0
        public frmReport(Form mainFrom, UserInfo userInfo, int type)
        {
            _userInfo = userInfo;
            _type = type;
            InitializeComponent();
            InitializeReportType();
            _mainForm = mainFrom;

        }
コード例 #29
0
        public FrmAddCustoms(String customsCode, int mode, UserInfo userInfo, FrmListCustoms frmListCustoms)
        {
            _userInfo = userInfo;
            _customsCode = customsCode;
            _mode = mode;
            _frmListCustoms = frmListCustoms;

            InitializeComponent();
        }
コード例 #30
0
        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");
        }