示例#1
0
        private void tsmiAddLog_Click(object sender, EventArgs e)
        {
            TreeNode tn  = tvSectionEdit.SelectedNode;
            string   sJH = tn.Parent.Text;

            if (tn.Tag.ToString() == TypeTrack.曲线道.ToString())
            {
                FormSectionAddWellLog formAddLog = new FormSectionAddWellLog(sJH);
                if (formAddLog.ShowDialog() == DialogResult.OK)
                {
                    ItemLogHeadInfor logHead = formAddLog.logHeadRet;
                    //此处写入配置文件xml,tn.name 是 id
                    cXmlDocSectionWell.addLog(this.filePathOper, tn.Name, logHead);
                }
            }
        }
示例#2
0
 private void tsmiTrackAddLogCurve_Click(object sender, EventArgs e)
 {
     if (sIDcurrentTrack.StartsWith("idTrack"))
     {
         if (cXmlDocSectionWell.getTrackTypeByID(filePathTemple, sIDcurrentTrack) == TypeTrack.曲线道.ToString())
         {
             string sJH = cXmlDocSectionWell.getNodeInnerText(this.filePathTemple, cXmlDocSectionWell.fullPathJH);
             FormSectionAddWellLog formAddLog = new FormSectionAddWellLog(sJH);
             if (formAddLog.ShowDialog() == DialogResult.OK)
             {
                 ItemLogHeadInfor logHead = formAddLog.logHeadRet;
                 //此处写入配置文件xml,tn.name 是 id
                 string sLogID   = cXmlDocSectionWell.addLog(this.filePathTemple, sIDcurrentTrack, logHead);
                 string sLogName = cIDmake.getLogNameByID(sLogID);
                 //如果测井文件存在,自动加载数据
                 //cIOtemplate.addLogData2Track(filePathSVG, sJH, sLogName, sLogID);
             }
             userFunctionPointer.DynamicInvoke(0);
         }
     }
 }