private void sbtnEdit_Click(object sender, EventArgs e) { Program.eButton = Program.Button.Edit; oChannelInfo = frmChannelList.oSelectedChannel; Enable(true); dtLastDate.DateTime = DateTime.Now; txt_Name.Focus(); }
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; }
private void sbtnNew_Click(object sender, EventArgs e) { Program.eButton = Program.Button.New; Clear(); oChannelInfo = new Account.Common.Entities.Channel_Info(); Enable(true); dtCreatedDate.DateTime = DateTime.Now; dtLastDate.DateTime = DateTime.Now; txt_UserCreate.Text = Program.CurrentUser.User_ID; txt_Name.Focus(); }
private void sbtnDetail_Click(object sender, EventArgs e) { oSelectedChannel = Find_Channel(Convert.ToInt32(gridView1.GetFocusedRowCellValue(gcolID).ToString())); if (oSelectedChannel == null) { return; } frmChannel ofrm = new frmChannel(); ofrm.ShowDialog(); SetDataSource(); }
private void sbtnDel_Click(object sender, EventArgs e) { Program.eButton = Program.Button.Del; oChannelInfo = frmChannelList.oSelectedChannel; Delete_Channel(); }