コード例 #1
0
ファイル: frmTranCode.cs プロジェクト: ePayment/account
 private void sbtnEdit_Click(object sender, EventArgs e)
 {
     oTranCodeInfo   = frmTranCodeList.oSelectedTranCode;
     Program.eButton = Program.Button.Edit;
     ReadOnly(false);
     txt_Code.Focus();
 }
コード例 #2
0
 private void sbtnNew_Click(object sender, EventArgs e)
 {
     Clear();
     oTranCodeInfo = new Account.Common.Entities.Trancode_Info();
     Enable(true);
     txt_Code.Focus();
 }
コード例 #3
0
ファイル: frmChannel.cs プロジェクト: ePayment/account
        private void Detail_Channel(Account.Common.Entities.Channel_Info oCurChannel)
        {
            txt_Name.Text         = oCurChannel.Name;
            txt_ISOPort.Text      = oCurChannel.ISO_Port.ToString();
            txt_ServicePort.Text  = oCurChannel.Service_Port.ToString();
            txt_ListenerHost.Text = oCurChannel.Listener_Host;
            if (!string.IsNullOrEmpty(oCurChannel.Branch))
            {
                oSelectedBranch = Program.FindBranch(oCurChannel.Branch);
                if (oSelectedBranch != null)
                {
                    lookUEditBranchID.EditValue = oSelectedBranch.ID;
                    txt_BranchName.Text         = oSelectedBranch.Name;
                }
            }
            txt_UserID.Text          = oCurChannel.UserLogin;
            txt_UserCreate.Text      = oCurChannel.User_Create;
            lookUpEdit_Ccy.EditValue = oCurChannel.Currency_Code;
            if (oCurChannel.Security == true)
            {
                cbo_Security.SelectedIndex = 0;
            }
            else
            {
                cbo_Security.SelectedIndex = 1;
            }
            dtCreatedDate.DateTime = oCurChannel.Create_Date;

            oSelectedCate = Program.FindCategories(oCurChannel.Categories);
            if (oSelectedCate != null)
            {
                lookUEdit_Categories.EditValue = oSelectedCate.ID;
            }

            oSelectedTranCode = Program.FindTranCode(oCurChannel.AddFund_Trancode);
            if (oSelectedTranCode != null)
            {
                lue_AddFund.EditValue = oSelectedTranCode.Code;
            }

            oSelectedTranCode = Program.FindTranCode(oCurChannel.Retail_Trancode);
            if (oSelectedTranCode != null)
            {
                lue_Retail.EditValue = oSelectedTranCode.Code;
            }

            oSelectedTranCode = Program.FindTranCode(oCurChannel.FundTranfer_Trancode);
            if (oSelectedTranCode != null)
            {
                lue_FundTransfer.EditValue = oSelectedTranCode.Code;
            }

            txt_PrivateKey.Text = oCurChannel.Key;
            txt_Descript.Text   = oCurChannel.Descript;

            dtLastDate.DateTime    = oCurChannel.Last_Date;
            dtCreatedDate.DateTime = oCurChannel.Create_Date;
        }
コード例 #4
0
ファイル: frmTranCode.cs プロジェクト: ePayment/account
 private void sbtnNew_Click(object sender, EventArgs e)
 {
     Clear();
     oTranCodeInfo   = new Account.Common.Entities.Trancode_Info();
     Program.eButton = Program.Button.New;
     ReadOnly(false);
     txt_Code.Focus();
     txt_UserCreate.Text    = Program.CurrentUser.User_ID;
     dtDateCreated.DateTime = DateTime.Now;
 }
コード例 #5
0
ファイル: frmTranCodeList.cs プロジェクト: ePayment/account
        private void sbtnDetail_Click(object sender, EventArgs e)
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }
            string strCode = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, gcolCode).ToString();

            oSelectedTranCode = Find_TranCode(strCode);
            frmTranCode ofrm = new frmTranCode();

            ofrm.ShowDialog();
            SetDataSource();
        }
コード例 #6
0
ファイル: frmTranCode.cs プロジェクト: ePayment/account
 private void Detail_TranCode(Account.Common.Entities.Trancode_Info oCurTranCode)
 {
     txt_Code.Text               = oCurTranCode.Code;
     txt_Name.Text               = oCurTranCode.Name;
     cbo_Status.EditValue        = oCurTranCode.Status;
     cbo_CodeType.EditValue      = oCurTranCode.CodeType;
     lookUpEdit_Categories.Text  = oCurTranCode.Categories;
     oSelectedBranch             = Program.FindBranch(oCurTranCode.Branch_ID);
     lookUEditBranchID.EditValue = oSelectedBranch.ID;
     txt_BranchName.Text         = oSelectedBranch.Name;
     txt_UserCreate.Text         = oCurTranCode.UserCreate;
     txt_NextCode.Text           = oCurTranCode.NextCode;
     txt_Descript.Text           = oCurTranCode.Descript;
     dtDateCreated.DateTime      = oCurTranCode.DateCreated;
 }
コード例 #7
0
 private void Detail_TranCode(Account.Common.Entities.Trancode_Info oCurTranCode)
 {
     txt_Code.Text               = oCurTranCode.Code;
     txt_Name.Text               = oCurTranCode.Name;
     txt_Categories.Text         = oCurTranCode.Categories;
     txt_RefNum.Text             = oCurTranCode.RefNum;
     oSelectedBranch             = Program.FindBranch(oCurTranCode.Branch_ID);
     lookUEditBranchID.EditValue = oSelectedBranch.ID;
     txt_BranchName.Text         = oSelectedBranch.Name;
     //txt_UserCreate.Text = Program.CurrentUser.FullName;
     txt_NextCode.Text = oCurTranCode.NextCode;
     if (oCurTranCode.Report == true)
     {
         cbo_Report.SelectedIndex = 0;
     }
     else
     {
         cbo_Report.SelectedIndex = 1;
     }
     txt_Formula.Text  = oCurTranCode.Formula;
     txt_CostCode.Text = oCurTranCode.CostCode;
     if (oCurTranCode.Display == true)
     {
         cbo_Display.SelectedIndex = 0;
     }
     else
     {
         cbo_Display.SelectedIndex = 1;
     }
     if (oCurTranCode.CheckOn == true)
     {
         cbo_CheckOn.SelectedIndex = 0;
     }
     else
     {
         cbo_CheckOn.SelectedIndex = 1;
     }
     dtDateCreated.DateTime = oCurTranCode.DateCreated;
 }
コード例 #8
0
 private void sbtnEdit_Click(object sender, EventArgs e)
 {
     oTranCodeInfo = frmTranCodeList.oSelectedTranCode;
     Enable(true);
     txt_Code.Focus();
 }
コード例 #9
0
ファイル: frmTranCode.cs プロジェクト: ePayment/account
 private void sbtnDel_Click(object sender, EventArgs e)
 {
     oTranCodeInfo = frmTranCodeList.oSelectedTranCode;
     Delete_TranCode();
 }