private void LoadArticleGroupMst() { DataSet dsLoaArticleMst = ProjectFunctions.GetDataSet("select Distinct GrpCode,GrpDesc from GrpMst"); if (dsLoaArticleMst.Tables[0].Rows.Count > 0) { txtGroups.Properties.Items.Clear(); foreach (DataRow dr in dsLoaArticleMst.Tables[0].Rows) { DevExpress.XtraEditors.Controls.CheckedListBoxItem item = new DevExpress.XtraEditors.Controls.CheckedListBoxItem { Description = dr["GrpDesc"].ToString(), Value = dr["GrpCode"].ToString(), CheckState = CheckState.Unchecked }; txtGroups.Properties.Items.Add(item); } } }
private void LoadActMst() { DataSet dsLoaActMst = ProjectFunctions.GetDataSet("select AccCode,AccName from ActMst Order By AccName"); if (dsLoaActMst.Tables[0].Rows.Count > 0) { txtParty.Properties.Items.Clear(); foreach (DataRow dr in dsLoaActMst.Tables[0].Rows) { DevExpress.XtraEditors.Controls.CheckedListBoxItem item = new DevExpress.XtraEditors.Controls.CheckedListBoxItem { Description = dr["AccName"].ToString(), Value = dr["AccCode"].ToString(), CheckState = CheckState.Unchecked }; txtParty.Properties.Items.Add(item); } } }
//Services.Services service = null; #endregion Private members public SYBK01Form() { InitializeComponent(); #region Add day of month for (int i = 1; i <= 31; i++) { DevExpress.XtraEditors.Controls.CheckedListBoxItem item = new DevExpress.XtraEditors.Controls.CheckedListBoxItem(); item.CheckState = CheckState.Unchecked; item.Description = i.ToString(); item.Value = i; chkListMonth.Items.Add(item); } #endregion Add day of month #region Add event handle this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); this.btnOk.Click += new System.EventHandler(this.btnOk_Click); this.rdoDaily.SelectedIndexChanged += new System.EventHandler(this.rdoDaily_SelectedIndexChanged); this.chkListMonth.ItemCheck += new DevExpress.XtraEditors.Controls.ItemCheckEventHandler(this.chkListMonth_ItemCheck); this.chkListDaily.ItemCheck += new DevExpress.XtraEditors.Controls.ItemCheckEventHandler(this.chkListDaily_ItemCheck); this.tedTime.EditValueChanged += new System.EventHandler(this.tedTime_EditValueChanged); this.btnFolderPath.Click += new System.EventHandler(this.btnFolderPath_Click); this.btnStop.Click += new System.EventHandler(this.btnStop_Click); #endregion Add event handle #region Set format default tedTime.Properties.Mask.EditMask = CommonData.TimeFormat.HHmmss; tedTime.Properties.Mask.UseMaskAsDisplayFormat = true; #endregion Set format default this.SetLanguage(); this.LoadBackupService(); }
public void Init() { // progtype = stype; ArrayList layerlist = tlVectorControl1.SVGDocument.getLayerList(); ArrayList tmplaylist = new ArrayList(); DevExpress.XtraEditors.Controls.CheckedListBoxItem[] chkItems = null; this.checkedListBoxControl1.Items.Clear(); if (progtype == "地理信息层") { for (int i = 0; i < layerlist.Count; i++) { Layer lar = (Layer)layerlist[i]; if (lar.GetAttribute("layerType") == progtype) { tmplaylist.Add(layerlist[i]); } else { lar.Visible = false; } } } if (progtype == "城市规划层") { for (int i = 0; i < layerlist.Count; i++) { Layer lar = (Layer)layerlist[i]; if (lar.GetAttribute("layerType") == "城市规划层" || lar.GetAttribute("layerType") == "地理信息层") { tmplaylist.Add(layerlist[i]); } else { lar.Visible = false; } } } if (progtype == "电网规划层") { for (int i = 0; i < layerlist.Count; i++) { Layer lar = (Layer)layerlist[i]; tmplaylist.Add(layerlist[i]); } } if (MapType == "所内接线图") { CreateComboBox(); ButtonEnb(true); LoadImage = false; bk1.Visible = false; selLar = ""; } chkItems = new DevExpress.XtraEditors.Controls.CheckedListBoxItem[tmplaylist.Count]; for (int j = 0; j < tmplaylist.Count; j++) { chkItems.SetValue(new DevExpress.XtraEditors.Controls.CheckedListBoxItem(((Layer)tmplaylist[j]).Label), j); if (((Layer)tmplaylist[j]).Visible) { chkItems[j].CheckState = CheckState.Checked; } } this.checkedListBoxControl1.Items.AddRange(chkItems); if (tmplaylist.Count > 0) { Layer lar = (Layer)tmplaylist[0]; SvgDocument.currentLayer = lar.ID; popupContainerEdit1.Text = lar.Label; selLar = lar.Label; } tlVectorControl1.FullDrawMode = true; int chose = Convert.ToInt32(ConfigurationSettings.AppSettings.Get("chose")); if (chose == 1) { tlVectorControl1.ScaleRatio = 0.1f; } if (chose == 2) { tlVectorControl1.ScaleRatio = 0.015625f; } //tlVectorControl1.ScaleRatio = 0.01f; tlVectorControl1.CurrentOperation = ToolOperation.Roam; //tlVectorControl1.Refresh(); }
private void CreateComboBox() { //字体 popupContainerEdit1.Text = ""; Layerlist = tlVectorControl1.SVGDocument.getLayerList(); ArrayList tmplaylist = new ArrayList(); DevExpress.XtraEditors.Controls.CheckedListBoxItem[] chkItems = null; this.checkedListBoxControl1.Items.Clear(); for (int i = 0; i < Layerlist.Count; i++) { Layer lar = (Layer)Layerlist[i]; if (lar.GetAttribute("layerType") == progtype || MapType == "所内接线图") { tmplaylist.Add(Layerlist[i]); } else { lar.Visible = false; } } //if(MapType=="所内接线图"){ // for (int i = 0; i < Layerlist.Count; i++) // { // Layer lar = (Layer)Layerlist[i]; // if (lar.GetAttribute("layerType") == MapType) // { // tmplaylist.Add(Layerlist[i]); // } // else // { // lar.Visible = false; // } // } //} chkItems = new DevExpress.XtraEditors.Controls.CheckedListBoxItem[tmplaylist.Count]; for (int i = 0; i < tmplaylist.Count; i++) { chkItems.SetValue(new DevExpress.XtraEditors.Controls.CheckedListBoxItem(((Layer)tmplaylist[i]).Label), i); if (((Layer)tmplaylist[i]).Visible) { chkItems[i].CheckState = CheckState.Checked; } } if (tmplaylist.Count > 0) { Layer lar1 = (Layer)tmplaylist[0]; SvgDocument.currentLayer = lar1.ID; popupContainerEdit1.Text = lar1.Label; selLar = lar1.Label; } this.checkedListBoxControl1.Items.AddRange(chkItems); this.checkedListBoxControl1.Location = new System.Drawing.Point(0, 0); this.checkedListBoxControl1.Name = "checkedListBoxControl1"; this.popupContainerEdit1.Properties.PopupControl = this.popupContainerControl1; }
internal void LoadParametros(DateTime fechaini, DateTime fechafin, DataTable tmpObras, DataTable tmpTRabajadores, int Facturado, bool resumen, bool agruparDescripcion, int decimalesPrecio) { fechaInicio = fechaini; fechaFinal = fechafin; this.WindowState = FormWindowState.Maximized; // TODO: This line of code loads data into the 'Promowork_dataDataSet.EmpresasActual' table. You can move, or remove it, as needed. this.EmpresasActualTableAdapter.FillByEmpresa(this.Promowork_dataDataSet.EmpresasActual, VariablesGlobales.nIdEmpresaActual); this.HorasPendientesFacturarTableAdapter.Fill(this.Promowork_dataDataSet.HorasPendientesFacturar, tmpObras, tmpTRabajadores, fechaini, fechafin, Facturado); if (resumen) { if (agruparDescripcion) { reportViewer1.LocalReport.ReportEmbeddedResource = "Promowork.Reportes.PendienteFacturarConResumen2.rdlc"; } else { reportViewer1.LocalReport.ReportEmbeddedResource = "Promowork.Reportes.PendienteFacturarConResumen.rdlc"; } } else { reportViewer1.LocalReport.ReportEmbeddedResource = "Promowork.Reportes.PendienteFacturar.rdlc"; } string decimales = "0"; if (decimalesPrecio > 0) { decimales = decimales + "."; for (int i = 1; i <= decimalesPrecio; i++) { decimales = decimales + "0"; } } string formatoPrecio = "#," + decimales + "'€'"; ReportParameter[] Parametros = new ReportParameter[4]; //Establecemos el valor de los parámetros Parametros[0] = new ReportParameter("FechaIni", Convert.ToString(fechaini)); Parametros[1] = new ReportParameter("FechaFin", Convert.ToString(fechafin)); Parametros[2] = new ReportParameter("FormatoPrecio", formatoPrecio); Parametros[3] = new ReportParameter("DecimalesPrecio", decimalesPrecio.ToString()); //Pasamos el array de los parámetros al ReportViewer this.reportViewer1.LocalReport.SetParameters(Parametros); this.reportViewer1.RefreshReport(); horasPendientes = ((GestionData.Promowork_dataDataSet)HorasPendientesFacturarBindingSource.DataSource).HorasPendientesFacturar; var obras = horasPendientes.GroupBy(o => o.IdObra).Select(o => o.First()) .Select(o => new ObrasFacturar { IdObra = o.IdObra, NumObra = o.NumObra, DesObra = o.DesObra }).OrderBy(o => o.NumObra).ToList(); foreach (var obra in obras) { DevExpress.XtraEditors.Controls.CheckedListBoxItem item = new DevExpress.XtraEditors.Controls.CheckedListBoxItem(); item.Value = obra.IdObra; item.Description = obra.NumeroDescripcion; item.CheckState = CheckState.Checked; cbObras.Properties.Items.Add(item); } }
public void CreateComboBox() { ArrayList Layerlist = tlVectorControl1.SVGDocument.getLayerList(); ArrayList tmplaylist = new ArrayList(); DevExpress.XtraEditors.Controls.CheckedListBoxItem[] chkItems = null; this.checkedListBoxControl1.Items.Clear(); for (int i = 0; i < Layerlist.Count; i++) { Layer lar = (Layer)Layerlist[i]; if (lar.GetAttribute("layerType") == progtype || lar.GetAttribute("layerType") == MapType) { tmplaylist.Add(Layerlist[i]); } else { lar.Visible = false; } } chkItems = new DevExpress.XtraEditors.Controls.CheckedListBoxItem[tmplaylist.Count]; for (int i = 0; i < tmplaylist.Count; i++) { chkItems.SetValue(new DevExpress.XtraEditors.Controls.CheckedListBoxItem(((Layer)tmplaylist[i]).Label), i); if (((Layer)tmplaylist[i]).Visible) { chkItems[i].CheckState = CheckState.Checked; } } if (tmplaylist.Count > 0) { Layer lar1 = (Layer)tmplaylist[0]; SvgDocument.currentLayer = lar1.ID; popupContainerEdit1.Text = lar1.Label; selLar = lar1.Label; } this.checkedListBoxControl1.Items.AddRange(chkItems); this.checkedListBoxControl1.Location = new System.Drawing.Point(0, 0); this.checkedListBoxControl1.Name = "checkedListBoxControl1"; this.popupContainerEdit1.Properties.PopupControl = this.popupContainerControl1; //LayerBox = dotNetBarManager1.GetItem("ComLayer") as DevComponents.DotNetBar.ComboBoxItem; //if (LayerBox != null) //{ // LayerBox.ComboBoxEx.Items.Clear(); // ArrayList Layerlist = tlVectorControl1.SVGDocument.getLayerList(); // LayerBox.ComboBoxEx.Items.Clear(); // for (int i = 0; i < Layerlist.Count; i++) // { // LayerBox.Items.Add(Layerlist[i]); // } // if (Layerlist.Count > 0) // { // LayerBox.ComboBoxEx.SelectedItem = Layerlist[0]; // selLar = ((Layer)Layerlist[0]).Label; // } // LayerCount = Layerlist.Count; // LayerBox.ComboBoxEx.SelectedIndexChanged += new EventHandler(ComboBoxEx_SelectedIndexChanged); // LayerBox.GotFocus += new EventHandler(LayerBox_GotFocus); //} }
public void InitJXT() { ArrayList layerlist = tlVectorControl1.SVGDocument.getLayerList(); DevExpress.XtraEditors.Controls.CheckedListBoxItem[] chkItems = null; this.checkedListBoxControl1.Items.Clear(); chkItems = new DevExpress.XtraEditors.Controls.CheckedListBoxItem[layerlist.Count]; for (int j = 0; j < layerlist.Count; j++) { chkItems.SetValue(new DevExpress.XtraEditors.Controls.CheckedListBoxItem(((Layer)layerlist[j]).Label), j); if (((Layer)layerlist[j]).Visible) { chkItems[j].CheckState = CheckState.Checked; } } this.checkedListBoxControl1.Items.AddRange(chkItems); if (layerlist.Count > 0) { Layer lar = (Layer)layerlist[0]; SvgDocument.currentLayer = lar.ID; popupContainerEdit1.Text = lar.Label; selLar = lar.Label; } this.popupContainerEdit1.Properties.PopupControl = this.popupContainerControl1; }
private void LoadSizeAndMeasurements() { DataSet dsData = ProjectFunctions.GetDataSet("Select * from MeasurementsMapping"); DataSet dsLoadMeasurement = ProjectFunctions.GetDataSet("select MCode,MDesc from measurements"); if (dsLoadMeasurement.Tables[0].Rows.Count > 0) { txtMeasurement.Properties.Items.Clear(); foreach (DataRow dr in dsLoadMeasurement.Tables[0].Rows) { DevExpress.XtraEditors.Controls.CheckedListBoxItem item = new DevExpress.XtraEditors.Controls.CheckedListBoxItem { Description = dr["MCode"].ToString(), Value = dr["MDesc"].ToString(), CheckState = CheckState.Unchecked }; txtMeasurement.Properties.Items.Add(item); } if (dsData.Tables[0].Rows.Count > 0) { } } DataSet dsSize = ProjectFunctions.GetDataSet("select SZSYSID,SZNAME from SIZEMAST"); if (dsSize.Tables[0].Rows.Count > 0) { txtSize.Properties.Items.Clear(); InfoGridView.Columns.Clear(); DevExpress.XtraGrid.Columns.GridColumn FieldA = new DevExpress.XtraGrid.Columns.GridColumn { Caption = "MCode", FieldName = "MCode", Visible = true }; InfoGridView.Columns.Add(FieldA); DevExpress.XtraGrid.Columns.GridColumn FieldB = new DevExpress.XtraGrid.Columns.GridColumn { Caption = "MDesc", FieldName = "MDesc", Visible = true }; InfoGridView.Columns.Add(FieldB); foreach (DataRow dr in dsSize.Tables[0].Rows) { DevExpress.XtraEditors.Controls.CheckedListBoxItem item = new DevExpress.XtraEditors.Controls.CheckedListBoxItem { Description = dr["SZNAME"].ToString(), Value = dr["SZSYSID"].ToString(), CheckState = CheckState.Unchecked }; txtSize.Properties.Items.Add(item); DevExpress.XtraGrid.Columns.GridColumn Field = new DevExpress.XtraGrid.Columns.GridColumn { Caption = dr["SZNAME"].ToString(), FieldName = dr["SZSYSID"].ToString(), Visible = false }; InfoGridView.Columns.Add(Field); } } }
private void FrmProject_Sum_Load(object sender, EventArgs e) { InitRight(); this.gridBand7.Columns.Add(this.bandedGridColumn5); this.gridBand18.Columns.Add(this.bandedGridColumn6); DevExpress.XtraEditors.Controls.CheckedListBoxItem[] chkItems = null; this.checkedListBoxControl1.Items.Clear(); PW_tb3c pc = new PW_tb3c(); pc.col4 = Itop.Client.MIS.ProgUID; IList<PW_tb3c> list3 = Services.BaseService.GetList<PW_tb3c>("SelectPW_tb3cList", pc); chkItems = new DevExpress.XtraEditors.Controls.CheckedListBoxItem[list3.Count]; for (int i = 0; i < list3.Count; i++) { chkItems.SetValue(new DevExpress.XtraEditors.Controls.CheckedListBoxItem(list3[i].col1), i); //if (((Layer)tmplaylist[i]).Visible) //{ // chkItems[i].CheckState = CheckState.Checked; //} } this.checkedListBoxControl1.Items.AddRange(chkItems); this.checkedListBoxControl1.Location = new System.Drawing.Point(0, 0); this.checkedListBoxControl1.Name = "checkedListBoxControl1"; this.popupContainerEdit1.Properties.PopupControl = this.popupContainerControl1; }
void prodiclist_BeforeFocusNode(object sender, BeforeFocusNodeEventArgs e) { #region 动态加载体检项信息采集控件 if (prodiclist.FocusedNode == null) { e.CanFocus = true; return; } prodiclist.Columns["cur_value"].ColumnEdit = null; string cur_value_str = e.Node.GetValue("m_value").ToString(); if (e.Node.GetValue("cur_value").ToString() != "-") { string controltype = e.Node.GetValue("control_type").ToString(); if (controltype == "" || controltype == "1") { //文字类型 或 未知类型 } else if (controltype == "2" || controltype == "3") { //数字类型 2 整合 3 小数 } else if (controltype == "4") { string cur_value_strc = e.Node.GetValue("m_value") + "-" + e.Node.GetValue("cur_value"); #region 单选 rg_cur_value.Properties.Items.Clear(); string contorl_static_str = e.Node.GetValue("contorl_static").ToString(); string[] strs = contorl_static_str.Split('|'); for (int i = 0; i < strs.Length; i++) { string[] element1 = strs[i].Split(','); if (element1.Length > 1) { DevExpress.XtraEditors.Controls.RadioGroupItem item = new DevExpress.XtraEditors.Controls.RadioGroupItem(); item.Description = element1[1]; item.Value = element1[0] + "-" + element1[1]; rg_cur_value.Properties.Items.Add(item); } } rg_cur_value.EditValue = cur_value_strc; prodiclist.Columns["cur_value"].ColumnEdit = ripcrg_cur_value; #endregion } else if (controltype == "5")//多选 { #region 多选控件 string cur_value_strcs = e.Node.GetValue("m_value").ToString(); string cur_value_strc = e.Node.GetValue("cur_value").ToString(); ccbe_cur_value.Items.Clear(); string[] cur_value_strs = cur_value_strcs.Split(','); string[] cur_value_strds = cur_value_strc.Split(','); List <string> ss = new List <string>(); for (int i = 0; i < cur_value_strs.Length; i++) { ss.Add(cur_value_strs[i] + "-" + cur_value_strds[i]); } string contorl_static_str = e.Node.GetValue("contorl_static").ToString(); string[] strs = contorl_static_str.Split('|'); for (int i = 0; i < strs.Length; i++) { string[] element1 = strs[i].Split(','); if (element1.Length > 1) { DevExpress.XtraEditors.Controls.CheckedListBoxItem item = new DevExpress.XtraEditors.Controls.CheckedListBoxItem(); item.Description = element1[1]; item.Value = element1[0] + "-" + element1[1]; if (ss.Contains(element1[0] + "-" + element1[1])) { item.CheckState = CheckState.Checked; } ccbe_cur_value.Items.Add(item); } } prodiclist.Columns["cur_value"].ColumnEdit = pipc_cur_value; #endregion } else if (controltype == "6")//日期 { #region 多选控件 try { prodiclist.Columns["cur_value"].ColumnEdit = ride_value; } catch { } #endregion } } #endregion }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); DevExpress.XtraEditors.Controls.CheckedListBoxItem checkedListBoxItem1 = new DevExpress.XtraEditors.Controls.CheckedListBoxItem(); DevExpress.XtraEditors.Controls.CheckedListBoxItem checkedListBoxItem2 = new DevExpress.XtraEditors.Controls.CheckedListBoxItem(); DevExpress.XtraEditors.Controls.CheckedListBoxItem checkedListBoxItem3 = new DevExpress.XtraEditors.Controls.CheckedListBoxItem(); this.grdObject = new System.Windows.Forms.DataGridView(); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.düzenleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.silToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.gbAra = new DevExpress.XtraEditors.GroupControl(); this.txtAra = new DevExpress.XtraEditors.TextEdit(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.müşteriToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.getAllCustomer = new System.Windows.Forms.ToolStripMenuItem(); this.telefonToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.getAllPhone = new System.Windows.Forms.ToolStripMenuItem(); this.GetAllPhoneCustomer = new System.Windows.Forms.ToolStripMenuItem(); this.txtAd = new DevExpress.XtraEditors.TextEdit(); this.txtSoyad = new DevExpress.XtraEditors.TextEdit(); this.AddCustomer = new DevExpress.XtraEditors.SimpleButton(); this.groupControl1 = new DevExpress.XtraEditors.GroupControl(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.txtUpdated = new DevExpress.XtraEditors.TextEdit(); this.btnUpdate = new DevExpress.XtraEditors.SimpleButton(); this.txtUpdateSurname = new DevExpress.XtraEditors.TextEdit(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.groupControl2 = new DevExpress.XtraEditors.GroupControl(); this.groupControl3 = new DevExpress.XtraEditors.GroupControl(); this.label9 = new System.Windows.Forms.Label(); this.ChImportantPhone = new DevExpress.XtraEditors.CheckedComboBoxEdit(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.txtPhoneTag = new DevExpress.XtraEditors.TextEdit(); this.txtKisiId = new DevExpress.XtraEditors.TextEdit(); this.txtPhoneNumber = new DevExpress.XtraEditors.TextEdit(); this.BtnSavePhone = new DevExpress.XtraEditors.SimpleButton(); this.btnPrev = new DevExpress.XtraEditors.SimpleButton(); this.BtnNext = new DevExpress.XtraEditors.SimpleButton(); this.label10 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.grdObject)).BeginInit(); this.contextMenuStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gbAra)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtAra.Properties)).BeginInit(); this.menuStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.txtAd.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSoyad.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtUpdated.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtUpdateSurname.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ChImportantPhone.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtPhoneTag.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtKisiId.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtPhoneNumber.Properties)).BeginInit(); this.SuspendLayout(); // // grdObject // this.grdObject.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.grdObject.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders; this.grdObject.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.grdObject.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; this.grdObject.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.grdObject.ContextMenuStrip = this.contextMenuStrip1; this.grdObject.Cursor = System.Windows.Forms.Cursors.Cross; this.grdObject.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this.grdObject.Location = new System.Drawing.Point(12, 44); this.grdObject.MultiSelect = false; this.grdObject.Name = "grdObject"; this.grdObject.RowHeadersVisible = false; dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.grdObject.RowsDefaultCellStyle = dataGridViewCellStyle1; this.grdObject.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.grdObject.Size = new System.Drawing.Size(551, 209); this.grdObject.TabIndex = 0; this.grdObject.Visible = false; // // contextMenuStrip1 // this.contextMenuStrip1.BackColor = System.Drawing.Color.WhiteSmoke; this.contextMenuStrip1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.düzenleToolStripMenuItem, this.silToolStripMenuItem }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new System.Drawing.Size(121, 48); this.contextMenuStrip1.Text = "Düzenle"; // // düzenleToolStripMenuItem // this.düzenleToolStripMenuItem.Name = "düzenleToolStripMenuItem"; this.düzenleToolStripMenuItem.Size = new System.Drawing.Size(120, 22); this.düzenleToolStripMenuItem.Text = "Düzenle"; this.düzenleToolStripMenuItem.Click += new System.EventHandler(this.DuzenleToolStripMenuItem_Click); // // silToolStripMenuItem // this.silToolStripMenuItem.Name = "silToolStripMenuItem"; this.silToolStripMenuItem.Size = new System.Drawing.Size(120, 22); this.silToolStripMenuItem.Text = "Sil"; this.silToolStripMenuItem.Click += new System.EventHandler(this.SilToolStripMenuItem_Click); // // gbAra // this.gbAra.Controls.Add(this.txtAra); this.gbAra.Location = new System.Drawing.Point(581, 44); this.gbAra.Name = "gbAra"; this.gbAra.Size = new System.Drawing.Size(203, 94); this.gbAra.TabIndex = 3; this.gbAra.Text = "Ara (Ad veya Soyada göre)"; // // txtAra // this.txtAra.Location = new System.Drawing.Point(28, 46); this.txtAra.Name = "txtAra"; this.txtAra.Size = new System.Drawing.Size(159, 20); this.txtAra.TabIndex = 0; this.txtAra.TextChanged += new System.EventHandler(this.TxtAra_TextChanged); // // menuStrip1 // this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.müşteriToolStripMenuItem, this.telefonToolStripMenuItem }); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(847, 24); this.menuStrip1.TabIndex = 5; this.menuStrip1.Text = "menuStrip1"; // // müşteriToolStripMenuItem // this.müşteriToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.getAllCustomer }); this.müşteriToolStripMenuItem.Name = "müşteriToolStripMenuItem"; this.müşteriToolStripMenuItem.Size = new System.Drawing.Size(37, 20); this.müşteriToolStripMenuItem.Text = "Kişi"; // // getAllCustomer // this.getAllCustomer.Name = "getAllCustomer"; this.getAllCustomer.Size = new System.Drawing.Size(107, 22); this.getAllCustomer.Text = "Listele"; this.getAllCustomer.Click += new System.EventHandler(this.GetAllCustomer_Click); // // telefonToolStripMenuItem // this.telefonToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.getAllPhone, this.GetAllPhoneCustomer }); this.telefonToolStripMenuItem.Name = "telefonToolStripMenuItem"; this.telefonToolStripMenuItem.Size = new System.Drawing.Size(57, 20); this.telefonToolStripMenuItem.Text = "Telefon"; // // getAllPhone // this.getAllPhone.Name = "getAllPhone"; this.getAllPhone.Size = new System.Drawing.Size(186, 22); this.getAllPhone.Text = "Listele"; this.getAllPhone.Click += new System.EventHandler(this.GetAllPhone_Click); // // GetAllPhoneCustomer // this.GetAllPhoneCustomer.Name = "GetAllPhoneCustomer"; this.GetAllPhoneCustomer.Size = new System.Drawing.Size(186, 22); this.GetAllPhoneCustomer.Text = "Müşteri Adıyla Listele"; this.GetAllPhoneCustomer.Click += new System.EventHandler(this.GetAllPhoneCustomer_Click); // // txtAd // this.txtAd.Location = new System.Drawing.Point(90, 29); this.txtAd.Name = "txtAd"; this.txtAd.TabIndex = 6; // // txtSoyad // this.txtSoyad.Location = new System.Drawing.Point(90, 58); this.txtSoyad.Name = "txtSoyad"; this.txtSoyad.TabIndex = 7; // // AddCustomer // this.AddCustomer.Location = new System.Drawing.Point(167, 88); this.AddCustomer.Name = "AddCustomer"; this.AddCustomer.Size = new System.Drawing.Size(78, 35); this.AddCustomer.TabIndex = 9; this.AddCustomer.Text = "Kaydet"; this.AddCustomer.Click += new System.EventHandler(this.AddCustomer_Click); // // groupControl1 // this.groupControl1.Controls.Add(this.label3); this.groupControl1.Controls.Add(this.label4); this.groupControl1.Controls.Add(this.txtAd); this.groupControl1.Controls.Add(this.txtSoyad); this.groupControl1.Controls.Add(this.AddCustomer); this.groupControl1.Location = new System.Drawing.Point(12, 302); this.groupControl1.Name = "groupControl1"; this.groupControl1.Size = new System.Drawing.Size(245, 123); this.groupControl1.TabIndex = 11; this.groupControl1.Text = "Kişi Kaydet"; this.groupControl1.Paint += new System.Windows.Forms.PaintEventHandler(this.groupControl1_Paint); // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(33, 34); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(40, 13); this.label3.TabIndex = 17; this.label3.Text = "Kişi Adı"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(16, 65); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(57, 13); this.label4.TabIndex = 18; this.label4.Text = "Kişi Soyadı"; // // txtUpdated // this.txtUpdated.Location = new System.Drawing.Point(81, 29); this.txtUpdated.Name = "txtUpdated"; this.txtUpdated.TabIndex = 12; // // btnUpdate // this.btnUpdate.Location = new System.Drawing.Point(138, 87); this.btnUpdate.Name = "btnUpdate"; this.btnUpdate.Size = new System.Drawing.Size(75, 37); this.btnUpdate.TabIndex = 13; this.btnUpdate.Text = "Düzenle"; this.btnUpdate.Click += new System.EventHandler(this.BtnUpdate_Click); // // txtUpdateSurname // this.txtUpdateSurname.Location = new System.Drawing.Point(81, 58); this.txtUpdateSurname.Name = "txtUpdateSurname"; this.txtUpdateSurname.TabIndex = 14; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(23, 34); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(40, 13); this.label1.TabIndex = 15; this.label1.Text = "Kişi Adı"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(23, 61); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(57, 13); this.label2.TabIndex = 16; this.label2.Text = "Kişi Soyadı"; // // groupControl2 // this.groupControl2.Controls.Add(this.label1); this.groupControl2.Controls.Add(this.label2); this.groupControl2.Controls.Add(this.txtUpdated); this.groupControl2.Controls.Add(this.btnUpdate); this.groupControl2.Controls.Add(this.txtUpdateSurname); this.groupControl2.Location = new System.Drawing.Point(274, 302); this.groupControl2.Name = "groupControl2"; this.groupControl2.Size = new System.Drawing.Size(213, 123); this.groupControl2.TabIndex = 17; this.groupControl2.Text = "Kişi Düzenle"; // // groupControl3 // this.groupControl3.Controls.Add(this.label9); this.groupControl3.Controls.Add(this.ChImportantPhone); this.groupControl3.Controls.Add(this.label8); this.groupControl3.Controls.Add(this.label7); this.groupControl3.Controls.Add(this.label6); this.groupControl3.Controls.Add(this.label5); this.groupControl3.Controls.Add(this.txtPhoneTag); this.groupControl3.Controls.Add(this.txtKisiId); this.groupControl3.Controls.Add(this.txtPhoneNumber); this.groupControl3.Controls.Add(this.BtnSavePhone); this.groupControl3.Location = new System.Drawing.Point(523, 302); this.groupControl3.Name = "groupControl3"; this.groupControl3.Size = new System.Drawing.Size(271, 162); this.groupControl3.TabIndex = 12; this.groupControl3.Text = "Telefon Numarası Kaydet"; // // label9 // this.label9.AutoSize = true; this.label9.Location = new System.Drawing.Point(79, 147); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(117, 13); this.label9.TabIndex = 21; this.label9.Text = "Burası çalışmıyor henüz"; // // ChImportantPhone // this.ChImportantPhone.EditValue = ""; this.ChImportantPhone.Location = new System.Drawing.Point(96, 110); this.ChImportantPhone.Name = "ChImportantPhone"; // // // this.ChImportantPhone.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.ChImportantPhone.Properties.DropDownRows = 3; checkedListBoxItem1.Description = "Primay"; checkedListBoxItem1.Tag = ((short)(1)); checkedListBoxItem2.Description = "Second"; checkedListBoxItem2.Tag = ((short)(2)); checkedListBoxItem2.Value = ((short)(2)); checkedListBoxItem3.Description = "Third"; checkedListBoxItem3.Tag = ((short)(3)); checkedListBoxItem3.Value = "1"; this.ChImportantPhone.Properties.Items.AddRange(new DevExpress.XtraEditors.Controls.CheckedListBoxItem[] { checkedListBoxItem1, checkedListBoxItem2, checkedListBoxItem3 }); this.ChImportantPhone.Properties.SelectAllItemVisible = false; this.ChImportantPhone.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; this.ChImportantPhone.TabIndex = 26; // // label8 // this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(5, 113); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(85, 13); this.label8.TabIndex = 23; this.label8.Text = "Öncelik Derecesi"; // // label7 // this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(5, 85); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(64, 13); this.label7.TabIndex = 22; this.label7.Text = "Telefon Tag"; // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(5, 59); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(59, 13); this.label6.TabIndex = 21; this.label6.Text = "Telefon No"; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(5, 30); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(35, 13); this.label5.TabIndex = 20; this.label5.Text = "Kişi Id"; // // txtPhoneTag // this.txtPhoneTag.Location = new System.Drawing.Point(96, 86); this.txtPhoneTag.Name = "txtPhoneTag"; this.txtPhoneTag.TabIndex = 11; // // txtKisiId // this.txtKisiId.Location = new System.Drawing.Point(96, 27); this.txtKisiId.Name = "txtKisiId"; this.txtKisiId.TabIndex = 6; // // txtPhoneNumber // this.txtPhoneNumber.Location = new System.Drawing.Point(96, 56); this.txtPhoneNumber.Name = "txtPhoneNumber"; this.txtPhoneNumber.TabIndex = 7; // // BtnSavePhone // this.BtnSavePhone.Location = new System.Drawing.Point(202, 101); this.BtnSavePhone.Name = "BtnSavePhone"; this.BtnSavePhone.Size = new System.Drawing.Size(69, 39); this.BtnSavePhone.TabIndex = 9; this.BtnSavePhone.Text = "Kaydet"; this.BtnSavePhone.Click += new System.EventHandler(this.BtnSavePhone_Click); // // btnPrev // this.btnPrev.Location = new System.Drawing.Point(207, 259); this.btnPrev.Name = "btnPrev"; this.btnPrev.TabIndex = 19; this.btnPrev.Text = "Prev"; // // BtnNext // this.BtnNext.Location = new System.Drawing.Point(288, 259); this.BtnNext.Name = "BtnNext"; this.BtnNext.TabIndex = 20; this.BtnNext.Text = "Next"; this.BtnNext.Click += new System.EventHandler(this.BtnNext_Click); // // label10 // this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(352, 264); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(116, 13); this.label10.TabIndex = 22; this.label10.Text = "Burası çalışmıyor henüz"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoSize = true; this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.ClientSize = new System.Drawing.Size(847, 525); this.Controls.Add(this.label10); this.Controls.Add(this.BtnNext); this.Controls.Add(this.btnPrev); this.Controls.Add(this.groupControl3); this.Controls.Add(this.groupControl2); this.Controls.Add(this.groupControl1); this.Controls.Add(this.menuStrip1); this.Controls.Add(this.gbAra); this.Controls.Add(this.grdObject); this.MainMenuStrip = this.menuStrip1; this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.grdObject)).EndInit(); this.contextMenuStrip1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.gbAra)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtAra.Properties)).EndInit(); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.txtAd.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSoyad.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtUpdated.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtUpdateSurname.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ChImportantPhone.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtPhoneTag.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtKisiId.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtPhoneNumber.Properties)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }