91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.69MB
    文件類型: .zip
    金幣: 2
    下載: 2 次
    發布日期: 2023-08-31
  • 語言: C#
  • 標簽: 稱重儀表??

資源簡介

電子秤地磅稱重儀表串口通訊c#程序,希望可以給不懂地磅稱重儀表串口編程的朋友帶來幫助

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.IO;
using?grproLib;


namespace?四星玻璃廠稱重統計
{
????public?partial?class?BaoBiao?:?Form
????{
????????public?BaoBiao()
????????{
????????????InitializeComponent();
????????}
????????//判斷頁面是否生成標志
????????private?bool?mdi;

????????public?bool?Mdi
????????{
????????????get?{?return?mdi;?}
????????????set?{?mdi?=?value;?}
????????}
????????//主頁面類
????????Form1?from1;
????????//數據庫類
????????ClsDB?db;
????????///??初始化表格的列??
????????private?void?treeInit()
????????{
????????????treeView1.ShowLines?=?true;
????????????treeView1.ImageList?=?imageList1;

????????????treeView1.Nodes.Clear();
????????????TreeNode?tmp;
????????????treeView1.Nodes.Add(“分類報表“);
????????????treeView1.Nodes[0].ImageIndex?=?0;

????????????/*treeView1.SelectedNode?=?treeView1.Nodes[0];?//定位根節點
????????????tmp?=?new?TreeNode(“分組明細“);
????????????tmp.ImageIndex?=?0;
????????????treeView1.SelectedNode.Nodes.Add(tmp);
????????????treeView1.SelectedNode?=?tmp;*/

????????????treeView1.SelectedNode?=?treeView1.Nodes[0];
????????????tmp?=?new?TreeNode(“分組匯總“);
????????????tmp.ImageIndex?=?0;
????????????treeView1.SelectedNode.Nodes.Add(tmp);
????????????treeView1.SelectedNode?=?tmp;

????????????//treeView1.SelectedNode?=?tmp;
????????????SetCurNode(treeView1?“分組匯總“);
????????????treeView1.ExpandAll();

????????}
????????private?void?SetCurNode(TreeView?tv?string?s)
????????{
????????????TreeNodeCollection?nodes?=?tv.Nodes;
????????????foreach?(TreeNode?n?in?nodes)
????????????{
????????????????if?(n.Text?==?s)
????????????????{
????????????????????treeView1.SelectedNode?=?n;
????????????????????break;
????????????????}
????????????}
????????}

????????private?void?BaoBiao_Load(object?sender?EventArgs?e)
????????{
????????????if?(Mdi)
????????????{
????????????????from1?=?(Form1)this.Owner;
????????????}
????????????treeInit();
????????????db?=?new?ClsDB();
????????}
????????///??初始化表格的列??
????????private?void?GridInit()
????????{
????????????dgView1.Rows.Clear();
????????????dgView1.Columns.Clear();
????????????dgView1.AllowUserToAddRows?=?false;??//此時,表格沒有最后的空行,修改與刪除時不會出錯!!
????????????dgView1.ReadOnly?=?true;?//不可修改
????????????dgView1.RowHeadersWidth?=?30;

????????????//設置表格列數及列標題文字
????????????dgView1.Columns.Add(“Name“?“報表名稱“);
????????????dgView1.Columns.Add(“Name“?“說明“);

????????????dgView1.Columns[0].Width?=?250;??//設置列寬
????????????dgView1.Columns[1].Width?=?150;

????????????for?(int?i?=?0;?i?????????????????dgView1.Columns[i].SortMode?=?DataGridViewColumnSortMode.NotSortable;

????????????dgView1.MultiSelect?=?false;
????????????dgView1.RowHeadersVisible?=?false;
????????????dgView1.ColumnHeadersHeightSizeMode?

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-08-23?14:01??四星玻璃廠稱重統計\
?????目錄???????????0??2013-08-23?14:01??四星玻璃廠稱重統計\Backup\
?????目錄???????????0??2013-08-23?14:01??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\
?????文件???????10115??2013-08-23?13:58??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\BaoBiao.Designer.cs
?????文件????????6948??2013-08-23?13:58??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\BaoBiao.cs
?????文件????????9472??2013-08-23?13:58??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\BaoBiao.resx
?????文件???????16565??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\ClsCom.cs
?????文件????????7355??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\ClsDB.cs
?????文件????????5098??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\ClsReport.cs
?????文件????????2137??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Clsapp.cs
?????文件????????5021??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Control.cs
?????文件???????10954??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Form1.Designer.cs
?????文件???????13766??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Form1.cs
?????文件????????6576??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Form1.resx
?????文件????????8255??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\IniFile.cs
?????文件???????13500??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Instrument.Designer.cs
?????文件????????7824??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Instrument.cs
?????文件????????6202??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Instrument.resx
?????文件????????1307??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\LiShi.cs
?????文件???????11477??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\ParamSet.Designer.cs
?????文件????????6123??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\ParamSet.cs
?????文件????????6376??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\ParamSet.resx
?????文件?????????780??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Program.cs
?????目錄???????????0??2013-08-23?14:01??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Properties\
?????文件????????1387??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Properties\AssemblyInfo.cs
?????文件????????2904??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Properties\Resources.Designer.cs
?????文件????????5612??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Properties\Resources.resx
?????文件????????1112??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Properties\Settings.Designer.cs
?????文件?????????249??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Properties\Settings.settings
?????文件???????13519??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Set.Designer.cs
?????文件????????3990??2013-08-23?13:59??四星玻璃廠稱重統計\Backup\四星玻璃廠稱重統計\Set.cs
............此處省略100個文件信息

評論

共有 條評論