| | |
| | | var _obj = new |
| | | { |
| | | guid = mxGuid, |
| | | sqlField = _txt |
| | | sqlField = _txt, |
| | | fType=0, |
| | | }; |
| | | try |
| | | { |
| | | var strJson = UtilityHelper.HttpPost("", |
| | | "Fm/EditCol", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | if (_rtn.rtnCode <= 0) |
| | | { |
| | | MsgHelper.ShowError("提示:" + _rtn.rtnMsg); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | private void repositoryItemComboBox3Sql_EditValueChanged(object sender, EventArgs e) |
| | | { |
| | | ComboBoxEdit comboBox = sender as ComboBoxEdit; |
| | | if (comboBox != null) |
| | | { |
| | | GridView myView = (gcQuery.MainView as GridView); |
| | | int dataIndex = myView.GetDataSourceRowIndex(myView.FocusedRowHandle); |
| | | string _txt = comboBox.Text.Trim(); |
| | | var dr = myView.GetDataRow(dataIndex); |
| | | var mxGuid = dr["guid"].ToString(); |
| | | if (mxGuid.Length > 0 ) |
| | | { |
| | | var _obj = new |
| | | { |
| | | guid = mxGuid, |
| | | fType = 1, |
| | | sqlFieldType = _txt |
| | | }; |
| | | try |
| | | { |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | } |
| | | } |