resform宏程序测录井分析批量统计含砂率.docx
- 文档编号:29398436
- 上传时间:2023-07-23
- 格式:DOCX
- 页数:54
- 大小:25.25KB
resform宏程序测录井分析批量统计含砂率.docx
《resform宏程序测录井分析批量统计含砂率.docx》由会员分享,可在线阅读,更多相关《resform宏程序测录井分析批量统计含砂率.docx(54页珍藏版)》请在冰豆网上搜索。
resform宏程序测录井分析批量统计含砂率
resform宏程序测录井分析批量统计含砂率
//本程序是批量计算含砂率,可以全井段计算也可根据层段(地层、砂层或者油层组)计算;
//浏览ResForm数据库并输入指定岩性进行统计
voidmain()
{
CreateForm();
}
voidCreateForm()
{
System.Windows.Forms.FormmainFrm;
System.Windows.Forms.GroupBoxgroupBox1;
System.Windows.Forms.ButtonbuttonInputDataAccess;System.Windows.Forms.TextBoxtextBoxLithoName;
System.Windows.Forms.GroupBoxgroupBox2;System.Windows.Forms.Labellabel1;
System.Windows.Forms.ComboBoxcomboBoxArea;
System.Windows.Forms.GroupBoxgroupBox3;
System.Windows.Forms.ButtonbuttonAllSel;
System.Windows.Forms.CheckedListBoxcheckedListBoxWellName;
System.Windows.Forms.GroupBoxgroupBox4;
System.Windows.Forms.ButtonbuttonAllCan;
System.Windows.Forms.Labellabel2;
System.Windows.Forms.ComboBoxcomboBoxDBC;
System.Windows.Forms.Labellabel3;
System.Windows.Forms.ButtonbuttonOutPut;
System.Windows.Forms.TextBoxtextBoxOutput;
System.Windows.Forms.ButtonbuttonOK;
System.Windows.Forms.TextBoxtextBoxInPutDataAccess;
System.Windows.Forms.ButtonbuttonCancel;
System.Windows.Forms.GroupBoxgroupBox5;
System.Windows.Forms.RadioButtonradioButtonDbc;
System.Windows.Forms.RadioButtonradioButtonAll;
mainFrm=newSystem.Windows.Forms.Form();groupBox1=newSystem.Windows.Forms.GroupBox();textBoxInPutDataAccess=newSystem.Windows.Forms.TextBox();
buttonInputDataAccess=newSystem.Windows.Forms.Button();
textBoxLithoName=newSystem.Windows.Forms.TextBox();
groupBox2=newSystem.Windows.Forms.GroupBox();
label1=newSystem.Windows.Forms.Label();
comboBoxArea=newSystem.Windows.Forms.ComboBox();groupBox3=newSystem.Windows.Forms.GroupBox();buttonAllCan=newSystem.Windows.Forms.Button();
buttonAllSel=newSystem.Windows.Forms.Button();
checkedListBoxWellName=newSystem.Windows.Forms.CheckedListBox();
groupBox4=newSystem.Windows.Forms.GroupBox();
label2=newSystem.Windows.Forms.Label();comboBoxDBC=newSystem.Windows.Forms.ComboBox();
label3=newSystem.Windows.Forms.Label();
buttonOutPut=newSystem.Windows.Forms.Button();
textBoxOutput=newSystem.Windows.Forms.TextBox();buttonOK=newSystem.Windows.Forms.Button();
buttonCancel=newSystem.Windows.Forms.Button();
groupBox5=newSystem.Windows.Forms.GroupBox();
radioButtonDbc=newSystem.Windows.Forms.RadioButton();
radioButtonAll=newSystem.Windows.Forms.RadioButton();
//
//groupBox1
//
groupBox1.Controls.Add(textBoxInPutDataAccess);
groupBox1.Controls.Add(buttonInputDataAccess);groupBox1.Location=newSystem.Drawing.Point(12,11);
groupBox1.Name="groupBox1";
groupBox1.Size=newSystem.Drawing.Size(192,81);
groupBox1.TabIndex=0;
groupBox1.TabStop=false;
groupBox1.Text="浏览数据库";
//
//textBoxInPutDataAccess
//
textBoxInPutDataAccess.Location=newSystem.Drawing.Point(11,49);textBoxInPutDataAccess.Name="textBoxInPutDataAccess";
textBoxInPutDataAccess.Size=newSystem.Drawing.Size(174,21);
textBoxInPutDataAccess.TabIndex=1;
//
//buttonInputDataAccess
//
buttonInputDataAccess.Location=newSystem.Drawing.Point(12,20);
buttonInputDataAccess.Name="buttonInputDataAccess";
buttonInputDataAccess.Size=newSystem.Drawing.Size(51,23);
buttonInputDataAccess.TabIndex=0;
buttonInputDataAccess.Text="加载";
buttonInputDataAccess.UseVisualStyleBackColor=true;//
//textBoxLithoName
//
textBoxLithoName.Location=newSystem.Drawing.Point(64,353);textBoxLithoName.Name="textBoxLithoName";textBoxLithoName.Size=newSystem.Drawing.Size(320,21);
textBoxLithoName.TabIndex=1;
textBoxLithoName.Text="砂岩,泥岩,灰岩,粉砂岩";
//
//groupBox2
//
groupBox2.Controls.Add(label1);
groupBox2.Controls.Add(comboBoxArea);
groupBox2.Location=newSystem.Drawing.Point(12,99);
groupBox2.Name="groupBox2";
groupBox2.Size=newSystem.Drawing.Size(192,52);
groupBox2.TabIndex=1;
groupBox2.TabStop=false;
groupBox2.Text="选择工区";
//
//label1
//
label1.AutoSize=true;
label1.Location=newSystem.Drawing.Point(10,23);label1.Name="label1";
label1.Size=newSystem.Drawing.Size(41,12);
label1.TabIndex=1;
label1.Text="区块";
//
//comboBoxArea
//
comboBoxArea.FormattingEnabled=true;comboBoxArea.Location=newSystem.Drawing.Point(65,20);
comboBoxArea.Name="comboBoxArea";
comboBoxArea.Size=newSystem.Drawing.Size(121,20);
comboBoxArea.TabIndex=0;
//
//groupBox3
//
groupBox3.Controls.Add(buttonAllCan);
groupBox3.Controls.Add(buttonAllSel);
groupBox3.Controls.Add(checkedListBoxWellName);groupBox3.Location=newSystem.Drawing.Point(209,11);
groupBox3.Name="groupBox3";
groupBox3.Size=newSystem.Drawing.Size(175,336);
groupBox3.TabIndex=2;
groupBox3.TabStop=false;
groupBox3.Text="井名";
//
//buttonAllCan
//
buttonAllCan.Location=newSystem.Drawing.Point(105,307);
buttonAllCan.Name="buttonAllCan";
buttonAllCan.Size=newSystem.Drawing.Size(39,23);
buttonAllCan.TabIndex=1;
buttonAllCan.Text="取消";
buttonAllCan.UseVisualStyleBackColor=true;
//
//buttonAllSel
//
buttonAllSel.Location=newSystem.Drawing.Point(25,307);buttonAllSel.Name="buttonAllSel";
buttonAllSel.Size=newSystem.Drawing.Size(39,23);
buttonAllSel.TabIndex=1;
buttonAllSel.Text="全选";
buttonAllSel.UseVisualStyleBackColor=true;
//
//checkedListBoxWellName
//
checkedListBoxWellName.CheckOnClick=true;
checkedListBoxWellName.FormattingEnabled=true;
checkedListBoxWellName.Location=newSystem.Drawing.Point(14,19);
checkedListBoxWellName.Name="checkedListBoxWellName";checkedListBoxWellName.Size=newSystem.Drawing.Size(148,276);
checkedListBoxWellName.TabIndex=0;
//
//groupBox4
//
groupBox4.Controls.Add(label2);
groupBox4.Controls.Add(comboBoxDBC);
groupBox4.Location=newSystem.Drawing.Point(11,157);
groupBox4.Name="groupBox4";
groupBox4.Size=newSystem.Drawing.Size(192,52);
groupBox4.TabIndex=1;
groupBox4.TabStop=false;
groupBox4.Text="选择对比槽";
//
//label2
//
label2.AutoSize=true;
label2.Location=newSystem.Drawing.Point(10,23);
label2.Name="label2";
label2.Size=newSystem.Drawing.Size(41,12);
label2.TabIndex=1;
label2.Text="对比槽";
//
//comboBoxDBC
//
comboBoxDBC.FormattingEnabled=true;comboBoxDBC.Location=newSystem.Drawing.Point(65,20);
comboBoxDBC.Name="comboBoxDBC";
comboBoxDBC.Size=newSystem.Drawing.Size(121,20);
comboBoxDBC.TabIndex=0;
comboBoxDBC.Items.AddRange(newstring[]{"地层对比槽","砂层组对比槽","
油层组对比槽"});
comboBoxDBC.Enabled=false;
//
//label3
//
label3.AutoSize=true;
label3.Location=newSystem.Drawing.Point(21,356);
label3.Name="label3";
label3.Size=newSystem.Drawing.Size(35,12);
label3.TabIndex=5;
label3.Text="岩性:
";
//
//buttonOutPut
//
buttonOutPut.Location=newSystem.Drawing.Point(44,381);
buttonOutPut.Name="buttonOutPut";
buttonOutPut.Size=newSystem.Drawing.Size(75,23);
buttonOutPut.TabIndex=4;
buttonOutPut.Text="输出";
buttonOutPut.UseVisualStyleBackColor=true;//
//textBoxOutput
//
textBoxOutput.Location=newSystem.Drawing.Point(145,381);textBoxOutput.Name="textBoxOutput";
textBoxOutput.Size=newSystem.Drawing.Size(239,21);textBoxOutput.TabIndex=1;
textBoxOutput.Text="C:
\\ResForm";
//
//buttonOK
//
buttonOK.Location=newSystem.Drawing.Point(44,421);buttonOK.Name="buttonOK";
buttonOK.Size=newSystem.Drawing.Size(75,23);
buttonOK.TabIndex=4;
buttonOK.Text="统计";
buttonOK.UseVisualStyleBackColor=true;
//
//buttonCancel
//
buttonCancel.DialogResult=System.Windows.Forms.DialogResult.Cancel;
buttonCancel.Location=newSystem.Drawing.Point(259,421);
buttonCancel.Name="buttonCancel";
buttonCancel.Size=newSystem.Drawing.Size(75,23);
buttonCancel.TabIndex=4;
buttonCancel.Text="退出";
buttonCancel.UseVisualStyleBackColor=true;
//
//groupBox5
//
groupBox5.Controls.Add(radioButtonDbc);
groupBox5.Controls.Add(radioButtonAll);groupBox5.Location=newSystem.Drawing.Point(11,215);
groupBox5.Name="groupBox5";
groupBox5.Size=newSystem.Drawing.Size(192,91);groupBox5.TabIndex=1;
groupBox5.TabStop=false;
groupBox5.Text="统计方式";
//
//radioButtonDbc
//
radioButtonDbc.AutoSize=true;
//radioButtonDbc.Checked=true;
radioButtonDbc.Location=newSystem.Drawing.Point(33,60);
radioButtonDbc.Name="radioButtonDbc";
radioButtonDbc.Size=newSystem.Drawing.Size(83,16);
radioButtonDbc.TabIndex=2;
radioButtonDbc.TabStop=true;
radioButtonDbc.Text="对比槽统计";
radioButtonDbc.UseVisualStyleBackColor=true;
//
//radioButtonAll
//
radioButtonAll.AutoSize=true;
radioButtonAll.Location=newSystem.Drawing.Point(33,29);
radioButtonAll.Name="radioButtonAll";radioButtonAll.Size=newSystem.Drawing.Size(83,16);
radioButtonAll.TabIndex=2;
radioButtonAll.TabStop=true;
radioButtonAll.Text="全井段统计";
radioButtonAll.UseVisualStyleBackColor=true;
radioButtonAll.Checked=true;
//
//Form1
//
mainFrm.AutoScaleDimensions=newSystem.Drawing.SizeF(6F,12F);
mainFrm.AutoScaleMode=System.Windows.Forms.AutoScaleMode.Font;
mainFrm.ClientSize=newSystem.Drawing.Size(396,456);
mainFrm.Controls.Add(textBoxOutput);
mainFrm.Controls.Add(textBoxLithoName);
mainFrm.Controls.Add(label3);
mainFrm.Controls.Add(buttonCancel);
mainFrm.Controls.Add(buttonOK);
mainFrm.Controls.Add(buttonOutPut);
mainFrm.Controls.Add(groupBox3);
mainFrm.Controls.Add(groupBox5);
mainFrm.Controls.Add(groupBox4);
mainFrm.Controls.Add(groupBox2);
mainFrm.Controls.Add(groupBox1);
mainFrm.FormBorderStyle=
System.Windows.Forms.FormBorderStyle.FixedSingle;
mainFrm.Name="Form1";
mainFrm.StartPosition=
System.Windows.Forms.FormStartPo
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- resform 程序 测录井 分析 批量 统计 含砂率