- 博客(9)
- 问答 (1)
- 收藏
- 关注
原创 list冒泡排序
string[] str = { }; // 遍历每条数据 for (int i = 0; i < list.Count; i++) { for (int j = 0; j < list.Count - 1 - i; j++) { // 第一条数据的第一个值跟第二条数据的第一个值进行比较 if (list[j][0].CompareTo(list[j + 1][0]) > 0) { str = .
2022-05-20 10:34:14 312
原创 C# comboBox固定值的写入
ArrayList mylist = new ArrayList();mylist.Add(new DictionaryEntry("dksm6", "DTG7設定"));mylist.Add(new DictionaryEntry("jyb6", "乗務員情報"));mylist.Add(new DictionaryEntry("dh6", "ハンディ設定"));mylist.Add(new DictionaryEntry("dhm6", "DHT4マスタ"));mylist.Add(new .
2022-05-20 10:22:07 425
原创 C# 读取csv文件内容存入list
// 文件路径string companyFilePath = temp_data_dir + "\\" + "companies.csv";StreamReader sr = new StreamReader(companyFilePath, System.Text.Encoding.Default);string strLine = sr.ReadLine();List<string[]> list = new List<string[]>();// 遍历文件内容w.
2022-05-18 17:38:52 2151
转载 C# SFTP上传下载
/// <summary>/// SFTP操作类/// </summary>public class SFTPHelper{ #region 字段或属性 private SftpClient sftp; /// <summary> /// SFTP连接状态 /// </summary> public bool Connected { get { return sftp.IsConnected; } }.
2022-05-18 17:22:35 1137
转载 C#读写ini文件
using System;using System.Collections.Generic;using System.Linq;using System.Runtime.InteropServices;using System.Text;using System.Threading.Tasks; namespace DoingIni{ class Program { [DllImport("kernel32")] private static.
2022-05-18 17:15:06 1412
原创 从byte中取得各个bit的值
// 十进制26 转换为二进制32位:00000000 00000000 00000000 00011010int testInt = 26;byte sharyoJyotai = (byte) testInt;int truckStatus = TruckStatus(sharyoJyotai);/*** 从左到右取得bit的值*/public static int TruckStatus(byte truckStatus) { int int1 = (truckStatus &am.
2022-01-12 11:40:13 386
原创 取得byte中的bit值
// 十进制26 转换为二进制32位:00000000 00000000 00000000 0011010int testInt = 26;byte[] arr = new byte[4];// 从上位(左)到下位(右)取得byte値arr[0] = (byte)((testInt >> 24) & 0xFF); // 00000000arr[1] = (byte)((testInt >> 16) & 0xFF); // 00000000arr[...
2022-01-06 09:51:37 819
原创 js正则判断
// 未入力 if(priceData ==""){ var msg = RAPI.internal.evaluateMessage({ key : '3001701', includeKey : false }); msg = msg.replace("undefined","料金(円)"), myAppCore.fErrorMsgShowArea('#errorMessage', msg); return;}// 数値以..
2021-12-23 11:58:43 391
原创 js端循环多条数据存入json数组
var dataList = [];var dataObject = "";var row_limit = scopeView.paramsDataGrid.data.rows.length; // 查询条数if (row_limit != 0) { for (var no = 1; no <= row_limit; no++) { var priceData = $('#price_id' + no).val(); dataObject={ ...
2021-12-23 11:11:30 1405
空空如也
使用vs2022创建窗体项目,设计器加载失败
2022-05-16
TA创建的收藏夹 TA关注的收藏夹
TA关注的人