Ejemplo n.º 1
0
 private void sbtnEdit_Click(object sender, EventArgs e)
 {
     oTranCodeInfo   = frmTranCodeList.oSelectedTranCode;
     Program.eButton = Program.Button.Edit;
     ReadOnly(false);
     txt_Code.Focus();
 }
Ejemplo n.º 2
0
 private void sbtnNew_Click(object sender, EventArgs e)
 {
     Clear();
     oTranCodeInfo = new Account.Common.Entities.Trancode_Info();
     Enable(true);
     txt_Code.Focus();
 }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
        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();
        }
Ejemplo n.º 6
0
 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 8
0
 private void sbtnEdit_Click(object sender, EventArgs e)
 {
     oTranCodeInfo = frmTranCodeList.oSelectedTranCode;
     Enable(true);
     txt_Code.Focus();
 }
Ejemplo n.º 9
0
 private void sbtnDel_Click(object sender, EventArgs e)
 {
     oTranCodeInfo = frmTranCodeList.oSelectedTranCode;
     Delete_TranCode();
 }