Beispiel #1
0
        /// <summary>
        /// 基础数据子项列表单击事件-修改
        /// Created:20170324(ChengMengjia)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gridDictItem_RowClick(object sender, DevComponents.DotNetBar.SuperGrid.GridRowClickEventArgs e)
        {
            DevComponents.DotNetBar.SuperGrid.GridElement list = gridDictItem.GetSelectedRows()[0];
            string s = list.ToString();

            s = s.Replace("{", ",");
            s = s.Replace("}", ",");
            string[] listS = s.Split(',');
            txtItemName.Tag    = listS[1].Trim();
            txtItemName.Text   = listS[4].Trim();
            txtItemRemark.Text = listS[5].Trim();
        }
Beispiel #2
0
        /// <summary>
        /// 附件列表行单击触发事件
        /// Created:20170331(ChengMengjia)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gridFile_RowClick(object sender, DevComponents.DotNetBar.SuperGrid.GridRowClickEventArgs e)
        {
            DevComponents.DotNetBar.SuperGrid.GridElement list = gridFile.GetSelectedRows()[0];
            string s = list.ToString();

            s = s.Replace("{", ",");
            s = s.Replace("}", ",");
            string[] listS = s.Split(',');
            txtFName.Text = listS[2].Trim();
            txtFDesc.Text = listS[3].Trim();
            txtFName.Tag  = listS[5].Trim();
            txtFPath.Text = listS[6].Trim();
            txtFPath.Tag  = 0;
        }
Beispiel #3
0
        /// <summary>
        /// 监理评价单击修改事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gridJLPJ_RowClick(object sender, DevComponents.DotNetBar.SuperGrid.GridRowClickEventArgs e)
        {
            dtJDate.IsInputReadOnly = false;
            DevComponents.DotNetBar.SuperGrid.GridElement list = gridJLPJ.GetSelectedRows()[0];
            string s = list.ToString();

            s = s.Replace("{", ",");
            s = s.Replace("}", ",");
            string[] listS = s.Split(',');
            txtJName.Tag     = listS[5].Trim();
            txtJName.Text    = listS[2].Trim();
            txtJContent.Text = listS[3].Trim();
            dtJDate.Value    = DateTime.Parse(listS[4].Trim());
        }
Beispiel #4
0
        /// <summary>
        /// 里程碑-修改 数据行单击事件
        ///  Created:20170327(ChengMengjia)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gridLCB_RowClick(object sender, DevComponents.DotNetBar.SuperGrid.GridRowClickEventArgs e)
        {
            DevComponents.DotNetBar.SuperGrid.GridElement list = gridLCB.GetSelectedRows()[0];
            string s = list.ToString();

            s = s.Replace("{", ",");
            s = s.Replace("}", ",");
            string[] listS = s.Split(',');
            txtLName.Tag    = listS[2].Trim();
            txtLName.Text   = listS[3].Trim();
            dtLFinish.Value = DateTime.Parse(listS[4].Trim());
            DataHelper.SetComboBoxSelectItemByValue(cbLStatus, listS[9].Trim());
            txtLCondition.Text = listS[6].Trim();
            txtLRemark.Text    = listS[7].Trim();
            dtLCREATED.Value   = DateTime.Parse(listS[8].Trim());
        }