在好例子网,分享、交流、成长!
您当前所在位置:首页C# 开发实例C#语言基础 → C# 生产管理系统源码(含数据库脚本)

C# 生产管理系统源码(含数据库脚本)

C#语言基础

下载此实例
  • 开发语言:C#
  • 实例大小:1.45M
  • 下载次数:92
  • 浏览次数:1383
  • 发布时间:2018-10-12
  • 实例类别:C#语言基础
  • 发 布 人:王彦勋
  • 文件格式:.zip
  • 所需积分:10

实例介绍

【实例简介】sql server中 新建 mrpbook数据库,执行<生产管理系统.sql>数据库脚本后,即可运行实例

【实例截图】

from clipboard


from clipboard


from clipboard


from clipboard

from clipboard

【核心代码】


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
using System;
using System.Data;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data.SqlClient;
 
namespace 生产管理系统
{
    /// <summary>
    /// MaterialsForm 的摘要说明。
    /// </summary>
    public class MaterialsForm : System.Windows.Forms.Form
    {
        //设置连接字符串
        private CurrencyManager cmOrders;
        //设置数据链接
        private SqlConnection tempConnection = new SqlConnection("workstation id=localhost;Integrated Security=SSPI;database=mrpbook;") ;
 
        private System.Data.SqlClient.SqlConnection sqlConnection1;
        private 生产管理系统.DataSet1 dataSet11;
        private System.Windows.Forms.DataGrid dataGrid1;
        private System.Windows.Forms.GroupBox groupBox1;
        private System.Windows.Forms.ToolBar toolBar1;
        private System.Windows.Forms.ImageList imageList1;
        private System.Windows.Forms.Button btnSearch;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.TextBox txt2;
        private System.Windows.Forms.TextBox txt1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.TextBox txt3;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.GroupBox groupBox2;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.Label label8;
        private System.Windows.Forms.Label label9;
        private System.Windows.Forms.Label label10;
        private System.Windows.Forms.ToolBarButton tBtnFirst;
        private System.Windows.Forms.ToolBarButton tBtnPre;
        private System.Windows.Forms.ToolBarButton tBtnNext;
        private System.Windows.Forms.ToolBarButton tBtnLast;
        private System.Windows.Forms.ToolBarButton tBtnNew;
        private System.Windows.Forms.ToolBarButton tBtnDelete;
        private System.Windows.Forms.ToolBarButton tBtnSubmit;
        private System.Windows.Forms.ToolBarButton tBtnEdit;
        private System.Windows.Forms.DataGridTableStyle dataGridTableStyle1;
        private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn1;
        private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn2;
        private System.Windows.Forms.Label label11;
        private System.Windows.Forms.Label label12;
        private System.Windows.Forms.Label label13;
        private System.Windows.Forms.Label label14;
        private System.Windows.Forms.Label label15;
        private System.Windows.Forms.Label label16;
        private System.Windows.Forms.Label label17;
        private System.Windows.Forms.Label label18;
        private System.Windows.Forms.Label label19;
        private System.Windows.Forms.Label label20;
        private System.Windows.Forms.Label label21;
        private System.Windows.Forms.Label label22;
        private System.Windows.Forms.Label label23;
        private System.Windows.Forms.Label label24;
        private System.Windows.Forms.Label label25;
        private System.Windows.Forms.Label label26;
        private System.Windows.Forms.Label label27;
        private System.Windows.Forms.Label label28;
        private System.Data.SqlClient.SqlDataAdapter da1;
        private System.Data.SqlClient.SqlDataAdapter da2;
        private System.Data.SqlClient.SqlCommand sqlSelectCommand2;
        private System.Windows.Forms.ComboBox cmb1;
        private System.Windows.Forms.TextBox txt4;
        private System.Windows.Forms.TextBox txt5;
        private System.Windows.Forms.TextBox txt6;
        private System.Windows.Forms.TextBox txt7;
        private System.Windows.Forms.ComboBox cmb2;
        private System.Windows.Forms.TextBox txt9;
        private System.Windows.Forms.TextBox txt8;
        private System.Windows.Forms.TextBox txt12;
        private System.Windows.Forms.TextBox txt11;
        private System.Windows.Forms.TextBox txt10;
        private System.Windows.Forms.TextBox txt13;
        private System.Windows.Forms.TextBox txt15;
        private System.Windows.Forms.TextBox txt16;
        private System.Windows.Forms.TextBox txt14;
        private System.Windows.Forms.TextBox txt17;
        private System.Windows.Forms.TextBox txt19;
        private System.Windows.Forms.TextBox txt18;
        private System.Windows.Forms.TextBox txt21;
        private System.Windows.Forms.TextBox txt24;
        private System.Windows.Forms.TextBox txt23;
        private System.Windows.Forms.TextBox txt20;
        private System.Windows.Forms.TextBox txt22;
        private System.Windows.Forms.TextBox txt27;
        private System.Windows.Forms.TextBox txt26;
        private System.Windows.Forms.TextBox txt29;
        private System.Windows.Forms.TextBox txt28;
        private System.Windows.Forms.TextBox txt25;
        private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
        private System.Data.SqlClient.SqlCommand sqlInsertCommand1;
        private System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
        private System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
        private System.Windows.Forms.ToolBarButton tBtnQuit;
        private System.Windows.Forms.ToolBarButton tBtnCancel;
        private System.ComponentModel.IContainer components;
 
        public MaterialsForm()
        {
            //
            // Windows 窗体设计器支持所必需的
            //
            InitializeComponent();
 
            //
            // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
            //
        }
 
        /// <summary>
        /// 清理所有正在使用的资源。
        /// </summary>
        protected override void Dispose( bool disposing )
        {
            if( disposing )
            {
                if(components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose( disposing );
        }
 
        #region Windows 窗体设计器生成的代码
        /// <summary>
        /// 设计器支持所需的方法 - 不要使用代码编辑器修改
        /// 此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MaterialsForm));
            this.da1 = new System.Data.SqlClient.SqlDataAdapter();
            this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
            this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
            this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
            this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
            this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
            this.dataSet11 = new 生产管理系统.DataSet1();
            this.dataGrid1 = new System.Windows.Forms.DataGrid();
            this.dataGridTableStyle1 = new System.Windows.Forms.DataGridTableStyle();
            this.dataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn();
            this.dataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.txt2 = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.btnSearch = new System.Windows.Forms.Button();
            this.txt1 = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.txt3 = new System.Windows.Forms.TextBox();
            this.label3 = new System.Windows.Forms.Label();
            this.toolBar1 = new System.Windows.Forms.ToolBar();
            this.tBtnFirst = new System.Windows.Forms.ToolBarButton();
            this.tBtnPre = new System.Windows.Forms.ToolBarButton();
            this.tBtnNext = new System.Windows.Forms.ToolBarButton();
            this.tBtnLast = new System.Windows.Forms.ToolBarButton();
            this.tBtnNew = new System.Windows.Forms.ToolBarButton();
            this.tBtnEdit = new System.Windows.Forms.ToolBarButton();
            this.tBtnDelete = new System.Windows.Forms.ToolBarButton();
            this.tBtnSubmit = new System.Windows.Forms.ToolBarButton();
            this.tBtnCancel = new System.Windows.Forms.ToolBarButton();
            this.tBtnQuit = new System.Windows.Forms.ToolBarButton();
            this.imageList1 = new System.Windows.Forms.ImageList(this.components);
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.txt12 = new System.Windows.Forms.TextBox();
            this.txt11 = new System.Windows.Forms.TextBox();
            this.txt10 = new System.Windows.Forms.TextBox();
            this.txt13 = new System.Windows.Forms.TextBox();
            this.txt15 = new System.Windows.Forms.TextBox();
            this.txt16 = new System.Windows.Forms.TextBox();
            this.txt14 = new System.Windows.Forms.TextBox();
            this.txt17 = new System.Windows.Forms.TextBox();
            this.txt19 = new System.Windows.Forms.TextBox();
            this.txt18 = new System.Windows.Forms.TextBox();
            this.txt21 = new System.Windows.Forms.TextBox();
            this.txt24 = new System.Windows.Forms.TextBox();
            this.txt23 = new System.Windows.Forms.TextBox();
            this.txt20 = new System.Windows.Forms.TextBox();
            this.txt22 = new System.Windows.Forms.TextBox();
            this.txt27 = new System.Windows.Forms.TextBox();
            this.txt26 = new System.Windows.Forms.TextBox();
            this.txt29 = new System.Windows.Forms.TextBox();
            this.txt28 = new System.Windows.Forms.TextBox();
            this.txt25 = new System.Windows.Forms.TextBox();
            this.cmb1 = new System.Windows.Forms.ComboBox();
            this.txt4 = new System.Windows.Forms.TextBox();
            this.txt5 = new System.Windows.Forms.TextBox();
            this.txt6 = new System.Windows.Forms.TextBox();
            this.txt7 = new System.Windows.Forms.TextBox();
            this.cmb2 = new System.Windows.Forms.ComboBox();
            this.txt9 = new System.Windows.Forms.TextBox();
            this.txt8 = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label6 = new System.Windows.Forms.Label();
            this.label7 = new System.Windows.Forms.Label();
            this.label8 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.label10 = new System.Windows.Forms.Label();
            this.label11 = new System.Windows.Forms.Label();
            this.label12 = new System.Windows.Forms.Label();
            this.label13 = new System.Windows.Forms.Label();
            this.label14 = new System.Windows.Forms.Label();
            this.label15 = new System.Windows.Forms.Label();
            this.label16 = new System.Windows.Forms.Label();
            this.label17 = new System.Windows.Forms.Label();
            this.label18 = new System.Windows.Forms.Label();
            this.label19 = new System.Windows.Forms.Label();
            this.label20 = new System.Windows.Forms.Label();
            this.label21 = new System.Windows.Forms.Label();
            this.label22 = new System.Windows.Forms.Label();
            this.label23 = new System.Windows.Forms.Label();
            this.label24 = new System.Windows.Forms.Label();
            this.label25 = new System.Windows.Forms.Label();
            this.label26 = new System.Windows.Forms.Label();
            this.label27 = new System.Windows.Forms.Label();
            this.label28 = new System.Windows.Forms.Label();
            this.da2 = new System.Data.SqlClient.SqlDataAdapter();
            this.sqlSelectCommand2 = new System.Data.SqlClient.SqlCommand();
            ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.SuspendLayout();
            //
            // da1
            //
            this.da1.DeleteCommand = this.sqlDeleteCommand1;
            this.da1.InsertCommand = this.sqlInsertCommand1;
            this.da1.SelectCommand = this.sqlSelectCommand1;
            this.da1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
                                                                                          new System.Data.Common.DataTableMapping("Table", "物料主文件", new System.Data.Common.DataColumnMapping[] {
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("物料编号", "物料编号"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("条码", "条码"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("物料名称", "物料名称"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("拼音编码", "拼音编码"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("计量单位", "计量单位"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("规格型号", "规格型号"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("计划类别", "计划类别"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("状态类别", "状态类别"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("归属类别", "归属类别"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("价值类别", "价值类别"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("物料特性a", "物料特性a"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("物料特性b", "物料特性b"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("物料特性c", "物料特性c"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("物料特性d", "物料特性d"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("长", "长"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("宽", "宽"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("高", "高"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("净重", "净重"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("品牌", "品牌"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("颜色", "颜色"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("等级", "等级"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("进货提前期", "进货提前期"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("准备周期", "准备周期"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("生产周期", "生产周期"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("最小包装量", "最小包装量"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("最低销售量", "最低销售量"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("批量", "批量"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("最高库存", "最高库存"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("最低库存", "最低库存"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("库存期限", "库存期限"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("录入者", "录入者"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("录入日期", "录入日期"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("低层码", "低层码"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("指定供货商", "指定供货商"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("定货策略", "定货策略"),
                                                                                                                                                                                                   new System.Data.Common.DataColumnMapping("生产车间", "生产车间")})});
            this.da1.UpdateCommand = this.sqlUpdateCommand1;
            //
            // sqlDeleteCommand1
            //
            this.sqlDeleteCommand1.CommandText = "DELETE FROM 物料主文件 WHERE (物料编号 = @Original_物料编号) AND (价值类别 = @Original_价值类别 OR @Or" 
                "iginal_价值类别 IS NULL AND 价值类别 IS NULL) AND (低层码 = @Original_低层码 OR @Original_低层码 " 
                "IS NULL AND 低层码 IS NULL) AND (净重 = @Original_净重 OR @Original_净重 IS NULL AND 净重 I" 
                "S NULL) AND (准备周期 = @Original_准备周期 OR @Original_准备周期 IS NULL AND 准备周期 IS NULL) A" 
                "ND (品牌 = @Original_品牌 OR @Original_品牌 IS NULL AND 品牌 IS NULL) AND (定货策略 = @Origi" 
                "nal_定货策略 OR @Original_定货策略 IS NULL AND 定货策略 IS NULL) AND (宽 = @Original_宽 OR @Or" 
                "iginal_宽 IS NULL AND 宽 IS NULL) AND (库存期限 = @Original_库存期限 OR @Original_库存期限 IS " 
                "NULL AND 库存期限 IS NULL) AND (归属类别 = @Original_归属类别 OR @Original_归属类别 IS NULL AND " 
                "归属类别 IS NULL) AND (录入日期 = @Original_录入日期 OR @Original_录入日期 IS NULL AND 录入日期 IS N" 
                "ULL) AND (录入者 = @Original_录入者 OR @Original_录入者 IS NULL AND 录入者 IS NULL) AND (批量 " 
                "= @Original_批量 OR @Original_批量 IS NULL AND 批量 IS NULL) AND (拼音编码 = @Original_拼音编" 
                "码 OR @Original_拼音编码 IS NULL AND 拼音编码 IS NULL) AND (指定供货商 = @Original_指定供货商 OR @O" 
                "riginal_指定供货商 IS NULL AND 指定供货商 IS NULL) AND (最低库存 = @Original_最低库存 OR @Original" 
                "_最低库存 IS NULL AND 最低库存 IS NULL) AND (最低销售量 = @Original_最低销售量 OR @Original_最低销售量 " 
                "IS NULL AND 最低销售量 IS NULL) AND (最小包装量 = @Original_最小包装量 OR @Original_最小包装量 IS NU" 
                "LL AND 最小包装量 IS NULL) AND (最高库存 = @Original_最高库存 OR @Original_最高库存 IS NULL AND 最" 
                "高库存 IS NULL) AND (条码 = @Original_条码 OR @Original_条码 IS NULL AND 条码 IS NULL) AND " 
                "(物料名称 = @Original_物料名称) AND (物料特性a = @Original_物料特性a OR @Original_物料特性a IS NULL " 
                "AND 物料特性a IS NULL) AND (物料特性b = @Original_物料特性b OR @Original_物料特性b IS NULL AND 物" 
                "料特性b IS NULL) AND (物料特性c = @Original_物料特性c OR @Original_物料特性c IS NULL AND 物料特性c " 
                "IS NULL) AND (物料特性d = @Original_物料特性d OR @Original_物料特性d IS NULL AND 物料特性d IS NU" 
                "LL) AND (状态类别 = @Original_状态类别 OR @Original_状态类别 IS NULL AND 状态类别 IS NULL) AND (" 
                "生产周期 = @Original_生产周期 OR @Original_生产周期 IS NULL AND 生产周期 IS NULL) AND (生产车间 = @O" 
                "riginal_生产车间 OR @Original_生产车间 IS NULL AND 生产车间 IS NULL) AND (等级 = @Original_等级 " 
                "OR @Original_等级 IS NULL AND 等级 IS NULL) AND (规格型号 = @Original_规格型号 OR @Original_" 
                "规格型号 IS NULL AND 规格型号 IS NULL) AND (计划类别 = @Original_计划类别 OR @Original_计划类别 IS N" 
                "ULL AND 计划类别 IS NULL) AND (计量单位 = @Original_计量单位) AND (进货提前期 = @Original_进货提前期 O" 
                "R @Original_进货提前期 IS NULL AND 进货提前期 IS NULL) AND (长 = @Original_长 OR @Original_长" 
                " IS NULL AND 长 IS NULL) AND (颜色 = @Original_颜色 OR @Original_颜色 IS NULL AND 颜色 IS" 
                " NULL) AND (高 = @Original_高 OR @Original_高 IS NULL AND 高 IS NULL)";
            this.sqlDeleteCommand1.Connection = this.sqlConnection1;
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料编号", System.Data.SqlDbType.VarChar, 14, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料编号", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_价值类别", System.Data.SqlDbType.VarChar, 1, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "价值类别", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_低层码", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "低层码", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_净重", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "净重", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_准备周期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "准备周期", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_品牌", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "品牌", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_定货策略", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "定货策略", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_宽", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "宽", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_库存期限", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "库存期限", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_归属类别", System.Data.SqlDbType.VarChar, 5, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "归属类别", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_录入日期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "录入日期", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_录入者", System.Data.SqlDbType.VarChar, 8, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "录入者", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_批量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(4)), "批量", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_拼音编码", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "拼音编码", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_指定供货商", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "指定供货商", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最低库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低库存", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最低销售量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低销售量", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最小包装量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最小包装量", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最高库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最高库存", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_条码", System.Data.SqlDbType.VarChar, 14, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "条码", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料名称", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料名称", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性a", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性a", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性b", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性b", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性c", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性c", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性d", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性d", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_状态类别", System.Data.SqlDbType.VarChar, 5, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "状态类别", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_生产周期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "生产周期", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_生产车间", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "生产车间", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_等级", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "等级", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_规格型号", System.Data.SqlDbType.VarChar, 20, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "规格型号", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_计划类别", System.Data.SqlDbType.VarChar, 5, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "计划类别", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_计量单位", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "计量单位", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_进货提前期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "进货提前期", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_长", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "长", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_颜色", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "颜色", System.Data.DataRowVersion.Original, null));
            this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_高", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "高", System.Data.DataRowVersion.Original, null));
            //
            // sqlConnection1
            //
            this.sqlConnection1.ConnectionString = "workstation id=localhost;Integrated Security=SSPI;Database=mrpbook;";
            //
            // sqlInsertCommand1
            //
            this.sqlInsertCommand1.CommandText = @"INSERT INTO 物料主文件(物料编号, 条码, 物料名称, 拼音编码, 计量单位, 规格型号, 计划类别, 状态类别, 归属类别, 价值类别, 物料特性a, 物料特性b, 物料特性c, 物料特性d, 长, 宽, 高, 净重, 品牌, 颜色, 等级, 进货提前期, 准备周期, 生产周期, 最小包装量, 最低销售量, 批量, 最高库存, 最低库存, 库存期限, 录入者, 录入日期, 低层码, 指定供货商, 定货策略, 生产车间) VALUES (@物料编号, @条码, @物料名称, @拼音编码, @计量单位, @规格型号, @计划类别, @状态类别, @归属类别, @价值类别, @物料特性a, @物料特性b, @物料特性c, @物料特性d, @长, @宽, @高, @净重, @品牌, @颜色, @等级, @进货提前期, @准备周期, @生产周期, @最小包装量, @最低销售量, @批量, @最高库存, @最低库存, @库存期限, @录入者, @录入日期, @低层码, @指定供货商, @定货策略, @生产车间); SELECT 物料编号, 条码, 物料名称, 拼音编码, 计量单位, 规格型号, 计划类别, 状态类别, 归属类别, 价值类别, 物料特性a, 物料特性b, 物料特性c, 物料特性d, 长, 宽, 高, 净重, 品牌, 颜色, 等级, 进货提前期, 准备周期, 生产周期, 最小包装量, 最低销售量, 批量, 最高库存, 最低库存, 库存期限, 录入者, 录入日期, 低层码, 指定供货商, 定货策略, 生产车间 FROM 物料主文件 WHERE (物料编号 = @物料编号)";
            this.sqlInsertCommand1.Connection = this.sqlConnection1;
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料编号", System.Data.SqlDbType.VarChar, 14, "物料编号"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@条码", System.Data.SqlDbType.VarChar, 14, "条码"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料名称", System.Data.SqlDbType.VarChar, 50, "物料名称"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@拼音编码", System.Data.SqlDbType.VarChar, 10, "拼音编码"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@计量单位", System.Data.SqlDbType.VarChar, 10, "计量单位"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@规格型号", System.Data.SqlDbType.VarChar, 20, "规格型号"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@计划类别", System.Data.SqlDbType.VarChar, 5, "计划类别"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@状态类别", System.Data.SqlDbType.VarChar, 5, "状态类别"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@归属类别", System.Data.SqlDbType.VarChar, 5, "归属类别"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@价值类别", System.Data.SqlDbType.VarChar, 1, "价值类别"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性a", System.Data.SqlDbType.VarChar, 40, "物料特性a"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性b", System.Data.SqlDbType.VarChar, 40, "物料特性b"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性c", System.Data.SqlDbType.VarChar, 40, "物料特性c"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性d", System.Data.SqlDbType.VarChar, 40, "物料特性d"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@长", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "长", System.Data.DataRowVersion.Current, null));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@宽", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "宽", System.Data.DataRowVersion.Current, null));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@高", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "高", System.Data.DataRowVersion.Current, null));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@净重", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "净重", System.Data.DataRowVersion.Current, null));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@品牌", System.Data.SqlDbType.VarChar, 10, "品牌"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@颜色", System.Data.SqlDbType.VarChar, 10, "颜色"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@等级", System.Data.SqlDbType.VarChar, 10, "等级"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@进货提前期", System.Data.SqlDbType.Int, 4, "进货提前期"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@准备周期", System.Data.SqlDbType.Int, 4, "准备周期"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@生产周期", System.Data.SqlDbType.Int, 4, "生产周期"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最小包装量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最小包装量", System.Data.DataRowVersion.Current, null));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最低销售量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低销售量", System.Data.DataRowVersion.Current, null));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@批量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(4)), "批量", System.Data.DataRowVersion.Current, null));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最高库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最高库存", System.Data.DataRowVersion.Current, null));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最低库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低库存", System.Data.DataRowVersion.Current, null));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@库存期限", System.Data.SqlDbType.Int, 4, "库存期限"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@录入者", System.Data.SqlDbType.VarChar, 8, "录入者"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@录入日期", System.Data.SqlDbType.Int, 4, "录入日期"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@低层码", System.Data.SqlDbType.Int, 4, "低层码"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@指定供货商", System.Data.SqlDbType.VarChar, 10, "指定供货商"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@定货策略", System.Data.SqlDbType.VarChar, 10, "定货策略"));
            this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@生产车间", System.Data.SqlDbType.VarChar, 10, "生产车间"));
            //
            // sqlSelectCommand1
            //
            this.sqlSelectCommand1.CommandText = @"SELECT 物料编号, 条码, 物料名称, 拼音编码, 计量单位, 规格型号, 计划类别, 状态类别, 归属类别, 价值类别, 物料特性a, 物料特性b, 物料特性c, 物料特性d, 长, 宽, 高, 净重, 品牌, 颜色, 等级, 进货提前期, 准备周期, 生产周期, 最小包装量, 最低销售量, 批量, 最高库存, 最低库存, 库存期限, 录入者, 录入日期, 低层码, 指定供货商, 定货策略, 生产车间 FROM 物料主文件 WHERE (物料编号 LIKE @Param10) AND (物料名称 LIKE @Param11) AND (拼音编码 LIKE @Param12 OR 拼音编码 IS NULL)";
            this.sqlSelectCommand1.Connection = this.sqlConnection1;
            this.sqlSelectCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Param10", System.Data.SqlDbType.VarChar, 14, "物料编号"));
            this.sqlSelectCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Param11", System.Data.SqlDbType.VarChar, 50, "物料名称"));
            this.sqlSelectCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Param12", System.Data.SqlDbType.VarChar, 10, "拼音编码"));
            //
            // sqlUpdateCommand1
            //
            this.sqlUpdateCommand1.CommandText = "UPDATE 物料主文件 SET 物料编号 = @物料编号, 条码 = @条码, 物料名称 = @物料名称, 拼音编码 = @拼音编码, 计量单位 = @计量单位" 
                ", 规格型号 = @规格型号, 计划类别 = @计划类别, 状态类别 = @状态类别, 归属类别 = @归属类别, 价值类别 = @价值类别, 物料特性a = " 
                "@物料特性a, 物料特性b = @物料特性b, 物料特性c = @物料特性c, 物料特性d = @物料特性d, 长 = @长, 宽 = @宽, 高 = @高, " 
                "净重 = @净重, 品牌 = @品牌, 颜色 = @颜色, 等级 = @等级, 进货提前期 = @进货提前期, 准备周期 = @准备周期, 生产周期 = @生产" 
                "周期, 最小包装量 = @最小包装量, 最低销售量 = @最低销售量, 批量 = @批量, 最高库存 = @最高库存, 最低库存 = @最低库存, 库存期限 =" 
                " @库存期限, 录入者 = @录入者, 录入日期 = @录入日期, 低层码 = @低层码, 指定供货商 = @指定供货商, 定货策略 = @定货策略, 生产车间" 
                " = @生产车间 WHERE (物料编号 = @Original_物料编号) AND (价值类别 = @Original_价值类别 OR @Original_价" 
                "值类别 IS NULL AND 价值类别 IS NULL) AND (低层码 = @Original_低层码 OR @Original_低层码 IS NULL " 
                "AND 低层码 IS NULL) AND (净重 = @Original_净重 OR @Original_净重 IS NULL AND 净重 IS NULL) " 
                "AND (准备周期 = @Original_准备周期 OR @Original_准备周期 IS NULL AND 准备周期 IS NULL) AND (品牌 =" 
                " @Original_品牌 OR @Original_品牌 IS NULL AND 品牌 IS NULL) AND (定货策略 = @Original_定货策略" 
                " OR @Original_定货策略 IS NULL AND 定货策略 IS NULL) AND (宽 = @Original_宽 OR @Original_宽" 
                " IS NULL AND 宽 IS NULL) AND (库存期限 = @Original_库存期限 OR @Original_库存期限 IS NULL AND" 
                " 库存期限 IS NULL) AND (归属类别 = @Original_归属类别 OR @Original_归属类别 IS NULL AND 归属类别 IS " 
                "NULL) AND (录入日期 = @Original_录入日期 OR @Original_录入日期 IS NULL AND 录入日期 IS NULL) AND" 
                " (录入者 = @Original_录入者 OR @Original_录入者 IS NULL AND 录入者 IS NULL) AND (批量 = @Origi" 
                "nal_批量 OR @Original_批量 IS NULL AND 批量 IS NULL) AND (拼音编码 = @Original_拼音编码 OR @Or" 
                "iginal_拼音编码 IS NULL AND 拼音编码 IS NULL) AND (指定供货商 = @Original_指定供货商 OR @Original_" 
                "指定供货商 IS NULL AND 指定供货商 IS NULL) AND (最低库存 = @Original_最低库存 OR @Original_最低库存 IS" 
                " NULL AND 最低库存 IS NULL) AND (最低销售量 = @Original_最低销售量 OR @Original_最低销售量 IS NULL " 
                "AND 最低销售量 IS NULL) AND (最小包装量 = @Original_最小包装量 OR @Original_最小包装量 IS NULL AND 最" 
                "小包装量 IS NULL) AND (最高库存 = @Original_最高库存 OR @Original_最高库存 IS NULL AND 最高库存 IS N" 
                "ULL) AND (条码 = @Original_条码 OR @Original_条码 IS NULL AND 条码 IS NULL) AND (物料名称 = " 
                "@Original_物料名称) AND (物料特性a = @Original_物料特性a OR @Original_物料特性a IS NULL AND 物料特性" 
                "a IS NULL) AND (物料特性b = @Original_物料特性b OR @Original_物料特性b IS NULL AND 物料特性b IS " 
                "NULL) AND (物料特性c = @Original_物料特性c OR @Original_物料特性c IS NULL AND 物料特性c IS NULL)" 
                " AND (物料特性d = @Original_物料特性d OR @Original_物料特性d IS NULL AND 物料特性d IS NULL) AND " 
                "(状态类别 = @Original_状态类别 OR @Original_状态类别 IS NULL AND 状态类别 IS NULL) AND (生产周期 = @" 
                "Original_生产周期 OR @Original_生产周期 IS NULL AND 生产周期 IS NULL) AND (生产车间 = @Original_" 
                "生产车间 OR @Original_生产车间 IS NULL AND 生产车间 IS NULL) AND (等级 = @Original_等级 OR @Orig" 
                "inal_等级 IS NULL AND 等级 IS NULL) AND (规格型号 = @Original_规格型号 OR @Original_规格型号 IS " 
                "NULL AND 规格型号 IS NULL) AND (计划类别 = @Original_计划类别 OR @Original_计划类别 IS NULL AND " 
                "计划类别 IS NULL) AND (计量单位 = @Original_计量单位) AND (进货提前期 = @Original_进货提前期 OR @Origi" 
                "nal_进货提前期 IS NULL AND 进货提前期 IS NULL) AND (长 = @Original_长 OR @Original_长 IS NULL" 
                " AND 长 IS NULL) AND (颜色 = @Original_颜色 OR @Original_颜色 IS NULL AND 颜色 IS NULL) A" 
                "ND (高 = @Original_高 OR @Original_高 IS NULL AND 高 IS NULL); SELECT 物料编号, 条码, 物料名称" 
                ", 拼音编码, 计量单位, 规格型号, 计划类别, 状态类别, 归属类别, 价值类别, 物料特性a, 物料特性b, 物料特性c, 物料特性d, 长, 宽, 高," 
                " 净重, 品牌, 颜色, 等级, 进货提前期, 准备周期, 生产周期, 最小包装量, 最低销售量, 批量, 最高库存, 最低库存, 库存期限, 录入者, 录入日" 
                "期, 低层码, 指定供货商, 定货策略, 生产车间 FROM 物料主文件 WHERE (物料编号 = @物料编号)";
            this.sqlUpdateCommand1.Connection = this.sqlConnection1;
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料编号", System.Data.SqlDbType.VarChar, 14, "物料编号"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@条码", System.Data.SqlDbType.VarChar, 14, "条码"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料名称", System.Data.SqlDbType.VarChar, 50, "物料名称"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@拼音编码", System.Data.SqlDbType.VarChar, 10, "拼音编码"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@计量单位", System.Data.SqlDbType.VarChar, 10, "计量单位"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@规格型号", System.Data.SqlDbType.VarChar, 20, "规格型号"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@计划类别", System.Data.SqlDbType.VarChar, 5, "计划类别"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@状态类别", System.Data.SqlDbType.VarChar, 5, "状态类别"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@归属类别", System.Data.SqlDbType.VarChar, 5, "归属类别"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@价值类别", System.Data.SqlDbType.VarChar, 1, "价值类别"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性a", System.Data.SqlDbType.VarChar, 40, "物料特性a"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性b", System.Data.SqlDbType.VarChar, 40, "物料特性b"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性c", System.Data.SqlDbType.VarChar, 40, "物料特性c"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@物料特性d", System.Data.SqlDbType.VarChar, 40, "物料特性d"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@长", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "长", System.Data.DataRowVersion.Current, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@宽", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "宽", System.Data.DataRowVersion.Current, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@高", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "高", System.Data.DataRowVersion.Current, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@净重", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "净重", System.Data.DataRowVersion.Current, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@品牌", System.Data.SqlDbType.VarChar, 10, "品牌"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@颜色", System.Data.SqlDbType.VarChar, 10, "颜色"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@等级", System.Data.SqlDbType.VarChar, 10, "等级"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@进货提前期", System.Data.SqlDbType.Int, 4, "进货提前期"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@准备周期", System.Data.SqlDbType.Int, 4, "准备周期"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@生产周期", System.Data.SqlDbType.Int, 4, "生产周期"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最小包装量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最小包装量", System.Data.DataRowVersion.Current, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最低销售量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低销售量", System.Data.DataRowVersion.Current, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@批量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(4)), "批量", System.Data.DataRowVersion.Current, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最高库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最高库存", System.Data.DataRowVersion.Current, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@最低库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低库存", System.Data.DataRowVersion.Current, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@库存期限", System.Data.SqlDbType.Int, 4, "库存期限"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@录入者", System.Data.SqlDbType.VarChar, 8, "录入者"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@录入日期", System.Data.SqlDbType.Int, 4, "录入日期"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@低层码", System.Data.SqlDbType.Int, 4, "低层码"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@指定供货商", System.Data.SqlDbType.VarChar, 10, "指定供货商"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@定货策略", System.Data.SqlDbType.VarChar, 10, "定货策略"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@生产车间", System.Data.SqlDbType.VarChar, 10, "生产车间"));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料编号", System.Data.SqlDbType.VarChar, 14, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料编号", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_价值类别", System.Data.SqlDbType.VarChar, 1, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "价值类别", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_低层码", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "低层码", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_净重", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "净重", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_准备周期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "准备周期", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_品牌", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "品牌", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_定货策略", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "定货策略", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_宽", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "宽", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_库存期限", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "库存期限", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_归属类别", System.Data.SqlDbType.VarChar, 5, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "归属类别", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_录入日期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "录入日期", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_录入者", System.Data.SqlDbType.VarChar, 8, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "录入者", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_批量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(4)), "批量", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_拼音编码", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "拼音编码", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_指定供货商", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "指定供货商", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最低库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低库存", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最低销售量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最低销售量", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最小包装量", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最小包装量", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_最高库存", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "最高库存", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_条码", System.Data.SqlDbType.VarChar, 14, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "条码", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料名称", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料名称", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性a", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性a", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性b", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性b", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性c", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性c", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_物料特性d", System.Data.SqlDbType.VarChar, 40, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "物料特性d", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_状态类别", System.Data.SqlDbType.VarChar, 5, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "状态类别", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_生产周期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "生产周期", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_生产车间", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "生产车间", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_等级", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "等级", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_规格型号", System.Data.SqlDbType.VarChar, 20, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "规格型号", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_计划类别", System.Data.SqlDbType.VarChar, 5, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "计划类别", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_计量单位", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "计量单位", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_进货提前期", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "进货提前期", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_长", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "长", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_颜色", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "颜色", System.Data.DataRowVersion.Original, null));
            this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_高", System.Data.SqlDbType.Decimal, 9, System.Data.ParameterDirection.Input, false, ((System.Byte)(18)), ((System.Byte)(3)), "高", System.Data.DataRowVersion.Original, null));
            //
            // dataSet11
            //
            this.dataSet11.DataSetName = "DataSet1";
            this.dataSet11.Locale = new System.Globalization.CultureInfo("zh-CN");
            //
            // dataGrid1
            //
            this.dataGrid1.CaptionVisible = false;
            this.dataGrid1.DataMember = "物料主文件";
            this.dataGrid1.DataSource = this.dataSet11;
            this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
            this.dataGrid1.Location = new System.Drawing.Point(8, 96);
            this.dataGrid1.Name = "dataGrid1";
            this.dataGrid1.ReadOnly = true;
            this.dataGrid1.RowHeaderWidth = 20;
            this.dataGrid1.Size = new System.Drawing.Size(192, 392);
            this.dataGrid1.TabIndex = 0;
            this.dataGrid1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
                                                                                                  this.dataGridTableStyle1});
            //
            // dataGridTableStyle1
            //
            this.dataGridTableStyle1.DataGrid = this.dataGrid1;
            this.dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
                                                                                                                  this.dataGridTextBoxColumn1,
                                                                                                                  this.dataGridTextBoxColumn2});
            this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
            this.dataGridTableStyle1.MappingName = "物料主文件";
            this.dataGridTableStyle1.RowHeaderWidth = 20;
            //
            // dataGridTextBoxColumn1
            //
            this.dataGridTextBoxColumn1.Format = "";
            this.dataGridTextBoxColumn1.FormatInfo = null;
            this.dataGridTextBoxColumn1.HeaderText = "物料编号";
            this.dataGridTextBoxColumn1.MappingName = "物料编号";
            this.dataGridTextBoxColumn1.Width = 75;
            //
            // dataGridTextBoxColumn2
            //
            this.dataGridTextBoxColumn2.Format = "";
            this.dataGridTextBoxColumn2.FormatInfo = null;
            this.dataGridTextBoxColumn2.HeaderText = "物料名称";
            this.dataGridTextBoxColumn2.MappingName = "物料名称";
            this.dataGridTextBoxColumn2.Width = 75;
            //
            // groupBox1
            //
            this.groupBox1.Controls.Add(this.txt2);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Controls.Add(this.btnSearch);
            this.groupBox1.Controls.Add(this.txt1);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.txt3);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Location = new System.Drawing.Point(8, 40);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(632, 56);
            this.groupBox1.TabIndex = 2;
            this.groupBox1.TabStop = false;
            //
            // txt2
            //
            this.txt2.Location = new System.Drawing.Point(328, 24);
            this.txt2.Name = "txt2";
            this.txt2.TabIndex = 2;
            this.txt2.Text = "";
            //
            // label1
            //
            this.label1.Location = new System.Drawing.Point(272, 28);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(56, 16);
            this.label1.TabIndex = 1;
            this.label1.Text = "物料名称";
            //
            // btnSearch
            //
            this.btnSearch.Image = ((System.Drawing.Image)(resources.GetObject("btnSearch.Image")));
            this.btnSearch.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnSearch.Location = new System.Drawing.Point(16, 24);
            this.btnSearch.Name = "btnSearch";
            this.btnSearch.Size = new System.Drawing.Size(72, 23);
            this.btnSearch.TabIndex = 0;
            this.btnSearch.Text = " 搜索";
            this.btnSearch.Click  = new System.EventHandler(this.btnSearch_Click);
            //
            // txt1
            //
            this.txt1.Location = new System.Drawing.Point(168, 24);
            this.txt1.Name = "txt1";
            this.txt1.TabIndex = 2;
            this.txt1.Text = "";
            //
            // label2
            //
            this.label2.Location = new System.Drawing.Point(104, 28);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(56, 16);
            this.label2.TabIndex = 1;
            this.label2.Text = "物料编号";
            //
            // txt3
            //
            this.txt3.Location = new System.Drawing.Point(504, 24);
            this.txt3.Name = "txt3";
            this.txt3.TabIndex = 2;
            this.txt3.Text = "";
            //
            // label3
            //
            this.label3.Location = new System.Drawing.Point(448, 28);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(56, 16);
            this.label3.TabIndex = 1;
            this.label3.Text = "物料拼音";
            //
            // toolBar1
            //
            this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
                                                                                        this.tBtnFirst,
                                                                                        this.tBtnPre,
                                                                                        this.tBtnNext,
                                                                                        this.tBtnLast,
                                                                                        this.tBtnNew,
                                                                                        this.tBtnEdit,
                                                                                        this.tBtnDelete,
                                                                                        this.tBtnSubmit,
                                                                                        this.tBtnCancel,
                                                                                        this.tBtnQuit});
            this.toolBar1.DropDownArrows = true;
            this.toolBar1.ImageList = this.imageList1;
            this.toolBar1.Location = new System.Drawing.Point(0, 0);
            this.toolBar1.Name = "toolBar1";
            this.toolBar1.ShowToolTips = true;
            this.toolBar1.Size = new System.Drawing.Size(648, 41);
            this.toolBar1.TabIndex = 25;
            this.toolBar1.ButtonClick  = new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
            //
            // tBtnFirst
            //
            this.tBtnFirst.ImageIndex = 0;
            this.tBtnFirst.Text = "首记录";
            this.tBtnFirst.ToolTipText = "首记录";
            //
            // tBtnPre
            //
            this.tBtnPre.ImageIndex = 1;
            this.tBtnPre.Text = "上一记录";
            this.tBtnPre.ToolTipText = "上一记录";
            //
            // tBtnNext
            //
            this.tBtnNext.ImageIndex = 2;
            this.tBtnNext.Text = "下一记录";
            this.tBtnNext.ToolTipText = "下一记录";
            //
            // tBtnLast
            //
            this.tBtnLast.ImageIndex = 3;
            this.tBtnLast.Text = "尾记录";
            this.tBtnLast.ToolTipText = "尾记录";
            //
            // tBtnNew
            //
            this.tBtnNew.ImageIndex = 4;
            this.tBtnNew.Text = "新增";
            this.tBtnNew.ToolTipText = "新增";
            //
            // tBtnEdit
            //
            this.tBtnEdit.ImageIndex = 5;
            this.tBtnEdit.Text = "修改";
            this.tBtnEdit.ToolTipText = "修改";
            //
            // tBtnDelete
            //
            this.tBtnDelete.ImageIndex = 6;
            this.tBtnDelete.Text = "删除";
            this.tBtnDelete.ToolTipText = "删除";
            //
            // tBtnSubmit
            //
            this.tBtnSubmit.ImageIndex = 7;
            this.tBtnSubmit.Text = "提交";
            this.tBtnSubmit.ToolTipText = "提交";
            //
            // tBtnCancel
            //
            this.tBtnCancel.ImageIndex = 8;
            this.tBtnCancel.Text = "取消";
            this.tBtnCancel.ToolTipText = "取消";
            //
            // tBtnQuit
            //
            this.tBtnQuit.ImageIndex = 9;
            this.tBtnQuit.Text = "退出";
            this.tBtnQuit.ToolTipText = "退出";
            //
            // imageList1
            //
            this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
            this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
            this.imageList1.TransparentColor = System.Drawing.SystemColors.ControlLightLight;
            //
            // groupBox2
            //
            this.groupBox2.Controls.Add(this.txt12);
            this.groupBox2.Controls.Add(this.txt11);
            this.groupBox2.Controls.Add(this.txt10);
            this.groupBox2.Controls.Add(this.txt13);
            this.groupBox2.Controls.Add(this.txt15);
            this.groupBox2.Controls.Add(this.txt16);
            this.groupBox2.Controls.Add(this.txt14);
            this.groupBox2.Controls.Add(this.txt17);
            this.groupBox2.Controls.Add(this.txt19);
            this.groupBox2.Controls.Add(this.txt18);
            this.groupBox2.Controls.Add(this.txt21);
            this.groupBox2.Controls.Add(this.txt24);
            this.groupBox2.Controls.Add(this.txt23);
            this.groupBox2.Controls.Add(this.txt20);
            this.groupBox2.Controls.Add(this.txt22);
            this.groupBox2.Controls.Add(this.txt27);
            this.groupBox2.Controls.Add(this.txt26);
            this.groupBox2.Controls.Add(this.txt29);
            this.groupBox2.Controls.Add(this.txt28);
            this.groupBox2.Controls.Add(this.txt25);
            this.groupBox2.Controls.Add(this.cmb1);
            this.groupBox2.Controls.Add(this.txt4);
            this.groupBox2.Controls.Add(this.txt5);
            this.groupBox2.Controls.Add(this.txt6);
            this.groupBox2.Controls.Add(this.txt7);
            this.groupBox2.Controls.Add(this.cmb2);
            this.groupBox2.Controls.Add(this.txt9);
            this.groupBox2.Controls.Add(this.txt8);
            this.groupBox2.Controls.Add(this.label4);
            this.groupBox2.Controls.Add(this.label5);
            this.groupBox2.Controls.Add(this.label6);
            this.groupBox2.Controls.Add(this.label7);
            this.groupBox2.Controls.Add(this.label8);
            this.groupBox2.Controls.Add(this.label9);
            this.groupBox2.Controls.Add(this.label10);
            this.groupBox2.Controls.Add(this.label11);
            this.groupBox2.Controls.Add(this.label12);
            this.groupBox2.Controls.Add(this.label13);
            this.groupBox2.Controls.Add(this.label14);
            this.groupBox2.Controls.Add(this.label15);
            this.groupBox2.Controls.Add(this.label16);
            this.groupBox2.Controls.Add(this.label17);
            this.groupBox2.Controls.Add(this.label18);
            this.groupBox2.Controls.Add(this.label19);
            this.groupBox2.Controls.Add(this.label20);
            this.groupBox2.Controls.Add(this.label21);
            this.groupBox2.Controls.Add(this.label22);
            this.groupBox2.Controls.Add(this.label23);
            this.groupBox2.Controls.Add(this.label24);
            this.groupBox2.Controls.Add(this.label25);
            this.groupBox2.Controls.Add(this.label26);
            this.groupBox2.Controls.Add(this.label27);
            this.groupBox2.Controls.Add(this.label28);
            this.groupBox2.Location = new System.Drawing.Point(200, 96);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(440, 392);
            this.groupBox2.TabIndex = 26;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "物料详细资料";
            //
            // txt12
            //
            this.txt12.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.物料特性c"));
            this.txt12.Location = new System.Drawing.Point(224, 136);
            this.txt12.Name = "txt12";
            this.txt12.ReadOnly = true;
            this.txt12.Size = new System.Drawing.Size(94, 21);
            this.txt12.TabIndex = 46;
            this.txt12.Text = "";
            //
            // txt11
            //
            this.txt11.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.物料特性b"));
            this.txt11.Location = new System.Drawing.Point(120, 136);
            this.txt11.Name = "txt11";
            this.txt11.ReadOnly = true;
            this.txt11.Size = new System.Drawing.Size(94, 21);
            this.txt11.TabIndex = 47;
            this.txt11.Text = "";
            //
            // txt10
            //
            this.txt10.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.物料特性a"));
            this.txt10.Location = new System.Drawing.Point(16, 136);
            this.txt10.Name = "txt10";
            this.txt10.ReadOnly = true;
            this.txt10.Size = new System.Drawing.Size(94, 21);
            this.txt10.TabIndex = 48;
            this.txt10.Text = "";
            //
            // txt13
            //
            this.txt13.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.物料特性d"));
            this.txt13.Location = new System.Drawing.Point(328, 136);
            this.txt13.Name = "txt13";
            this.txt13.ReadOnly = true;
            this.txt13.Size = new System.Drawing.Size(94, 21);
            this.txt13.TabIndex = 52;
            this.txt13.Text = "";
            //
            // txt15
            //
            this.txt15.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.宽"));
            this.txt15.Location = new System.Drawing.Point(80, 184);
            this.txt15.Name = "txt15";
            this.txt15.ReadOnly = true;
            this.txt15.Size = new System.Drawing.Size(56, 21);
            this.txt15.TabIndex = 53;
            this.txt15.Text = "";
            //
            // txt16
            //
            this.txt16.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.高"));
            this.txt16.Location = new System.Drawing.Point(144, 184);
            this.txt16.Name = "txt16";
            this.txt16.ReadOnly = true;
            this.txt16.Size = new System.Drawing.Size(65, 21);
            this.txt16.TabIndex = 49;
            this.txt16.Text = "";
            //
            // txt14
            //
            this.txt14.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.长"));
            this.txt14.Location = new System.Drawing.Point(16, 184);
            this.txt14.Name = "txt14";
            this.txt14.ReadOnly = true;
            this.txt14.Size = new System.Drawing.Size(56, 21);
            this.txt14.TabIndex = 50;
            this.txt14.Text = "";
            //
            // txt17
            //
            this.txt17.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.净重"));
            this.txt17.Location = new System.Drawing.Point(216, 184);
            this.txt17.Name = "txt17";
            this.txt17.ReadOnly = true;
            this.txt17.Size = new System.Drawing.Size(65, 21);
            this.txt17.TabIndex = 51;
            this.txt17.Text = "";
            //
            // txt19
            //
            this.txt19.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.颜色"));
            this.txt19.Location = new System.Drawing.Point(360, 184);
            this.txt19.Name = "txt19";
            this.txt19.ReadOnly = true;
            this.txt19.Size = new System.Drawing.Size(65, 21);
            this.txt19.TabIndex = 38;
            this.txt19.Text = "";
            //
            // txt18
            //
            this.txt18.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.品牌"));
            this.txt18.Location = new System.Drawing.Point(288, 184);
            this.txt18.Name = "txt18";
            this.txt18.ReadOnly = true;
            this.txt18.Size = new System.Drawing.Size(65, 21);
            this.txt18.TabIndex = 39;
            this.txt18.Text = "";
            //
            // txt21
            //
            this.txt21.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.进货提前期"));
            this.txt21.Location = new System.Drawing.Point(88, 240);
            this.txt21.Name = "txt21";
            this.txt21.ReadOnly = true;
            this.txt21.Size = new System.Drawing.Size(72, 21);
            this.txt21.TabIndex = 40;
            this.txt21.Text = "";
            //
            // txt24
            //
            this.txt24.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.最小包装量"));
            this.txt24.Location = new System.Drawing.Point(336, 240);
            this.txt24.Name = "txt24";
            this.txt24.ReadOnly = true;
            this.txt24.Size = new System.Drawing.Size(80, 21);
            this.txt24.TabIndex = 37;
            this.txt24.Text = "";
            //
            // txt23
            //
            this.txt23.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.生产周期"));
            this.txt23.Location = new System.Drawing.Point(248, 240);
            this.txt23.Name = "txt23";
            this.txt23.ReadOnly = true;
            this.txt23.Size = new System.Drawing.Size(80, 21);
            this.txt23.TabIndex = 34;
            this.txt23.Text = "";
            //
            // txt20
            //
            this.txt20.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.等级"));
            this.txt20.Location = new System.Drawing.Point(16, 240);
            this.txt20.Name = "txt20";
            this.txt20.ReadOnly = true;
            this.txt20.Size = new System.Drawing.Size(64, 21);
            this.txt20.TabIndex = 35;
            this.txt20.Text = "";
            //
            // txt22
            //
            this.txt22.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.准备周期"));
            this.txt22.Location = new System.Drawing.Point(168, 240);
            this.txt22.Name = "txt22";
            this.txt22.ReadOnly = true;
            this.txt22.Size = new System.Drawing.Size(72, 21);
            this.txt22.TabIndex = 36;
            this.txt22.Text = "";
            //
            // txt27
            //
            this.txt27.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.最低库存"));
            this.txt27.Location = new System.Drawing.Point(160, 296);
            this.txt27.Name = "txt27";
            this.txt27.ReadOnly = true;
            this.txt27.Size = new System.Drawing.Size(72, 21);
            this.txt27.TabIndex = 43;
            this.txt27.Text = "";
            //
            // txt26
            //
            this.txt26.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.最高库存"));
            this.txt26.Location = new System.Drawing.Point(88, 296);
            this.txt26.Name = "txt26";
            this.txt26.ReadOnly = true;
            this.txt26.Size = new System.Drawing.Size(72, 21);
            this.txt26.TabIndex = 44;
            this.txt26.Text = "";
            //
            // txt29
            //
            this.txt29.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.最低销售量"));
            this.txt29.Location = new System.Drawing.Point(328, 296);
            this.txt29.Name = "txt29";
            this.txt29.ReadOnly = true;
            this.txt29.Size = new System.Drawing.Size(88, 21);
            this.txt29.TabIndex = 45;
            this.txt29.Text = "";
            //
            // txt28
            //
            this.txt28.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.库存期限"));
            this.txt28.Location = new System.Drawing.Point(240, 296);
            this.txt28.Name = "txt28";
            this.txt28.ReadOnly = true;
            this.txt28.Size = new System.Drawing.Size(80, 21);
            this.txt28.TabIndex = 42;
            this.txt28.Text = "";
            //
            // txt25
            //
            this.txt25.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.批量"));
            this.txt25.Location = new System.Drawing.Point(16, 296);
            this.txt25.Name = "txt25";
            this.txt25.ReadOnly = true;
            this.txt25.Size = new System.Drawing.Size(64, 21);
            this.txt25.TabIndex = 41;
            this.txt25.Text = "";
            //
            // cmb1
            //
            this.cmb1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.计量单位"));
            this.cmb1.Enabled = false;
            this.cmb1.Location = new System.Drawing.Point(336, 40);
            this.cmb1.Name = "cmb1";
            this.cmb1.Size = new System.Drawing.Size(88, 20);
            this.cmb1.TabIndex = 32;
            //
            // txt4
            //
            this.txt4.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.物料编号"));
            this.txt4.Location = new System.Drawing.Point(16, 40);
            this.txt4.Name = "txt4";
            this.txt4.ReadOnly = true;
            this.txt4.Size = new System.Drawing.Size(80, 21);
            this.txt4.TabIndex = 23;
            this.txt4.Text = "";
            //
            // txt5
            //
            this.txt5.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.物料名称"));
            this.txt5.Location = new System.Drawing.Point(112, 40);
            this.txt5.Name = "txt5";
            this.txt5.ReadOnly = true;
            this.txt5.Size = new System.Drawing.Size(112, 21);
            this.txt5.TabIndex = 24;
            this.txt5.Text = "";
            //
            // txt6
            //
            this.txt6.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.拼音编码"));
            this.txt6.Location = new System.Drawing.Point(240, 40);
            this.txt6.Name = "txt6";
            this.txt6.ReadOnly = true;
            this.txt6.Size = new System.Drawing.Size(80, 21);
            this.txt6.TabIndex = 25;
            this.txt6.Text = "";
            //
            // txt7
            //
            this.txt7.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.规格型号"));
            this.txt7.Location = new System.Drawing.Point(16, 88);
            this.txt7.Name = "txt7";
            this.txt7.ReadOnly = true;
            this.txt7.Size = new System.Drawing.Size(80, 21);
            this.txt7.TabIndex = 21;
            this.txt7.Text = "";
            //
            // cmb2
            //
            this.cmb2.Enabled = false;
            this.cmb2.Location = new System.Drawing.Point(112, 88);
            this.cmb2.Name = "cmb2";
            this.cmb2.Size = new System.Drawing.Size(120, 20);
            this.cmb2.TabIndex = 33;
            //
            // txt9
            //
            this.txt9.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.录入日期"));
            this.txt9.Location = new System.Drawing.Point(328, 88);
            this.txt9.Name = "txt9";
            this.txt9.ReadOnly = true;
            this.txt9.Size = new System.Drawing.Size(96, 21);
            this.txt9.TabIndex = 14;
            this.txt9.Text = "";
            //
            // txt8
            //
            this.txt8.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "物料主文件.录入者"));
            this.txt8.Location = new System.Drawing.Point(248, 88);
            this.txt8.Name = "txt8";
            this.txt8.ReadOnly = true;
            this.txt8.Size = new System.Drawing.Size(64, 21);
            this.txt8.TabIndex = 15;
            this.txt8.Text = "";
            //
            // label4
            //
            this.label4.Location = new System.Drawing.Point(16, 24);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(56, 16);
            this.label4.TabIndex = 3;
            this.label4.Text = "物料编号";
            //
            // label5
            //
            this.label5.Location = new System.Drawing.Point(112, 24);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(56, 16);
            this.label5.TabIndex = 3;
            this.label5.Text = "物料名称";
            //
            // label6
            //
            this.label6.Location = new System.Drawing.Point(240, 24);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(56, 16);
            this.label6.TabIndex = 3;
            this.label6.Text = "拼音编码";
            //
            // label7
            //
            this.label7.Location = new System.Drawing.Point(336, 24);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(56, 16);
            this.label7.TabIndex = 3;
            this.label7.Text = "计量单位";
            //
            // label8
            //
            this.label8.Location = new System.Drawing.Point(16, 72);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(56, 16);
            this.label8.TabIndex = 3;
            this.label8.Text = "规格型号";
            //
            // label9
            //
            this.label9.Location = new System.Drawing.Point(112, 72);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(56, 16);
            this.label9.TabIndex = 3;
            this.label9.Text = "计划类别";
            //
            // label10
            //
            this.label10.Location = new System.Drawing.Point(16, 120);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(56, 16);
            this.label10.TabIndex = 3;
            this.label10.Text = "物料特性";
            //
            // label11
            //
            this.label11.Location = new System.Drawing.Point(144, 168);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(24, 16);
            this.label11.TabIndex = 3;
            this.label11.Text = "高";
            //
            // label12
            //
            this.label12.Location = new System.Drawing.Point(16, 168);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(24, 16);
            this.label12.TabIndex = 3;
            this.label12.Text = "长";
            //
            // label13
            //
            this.label13.Location = new System.Drawing.Point(80, 168);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(24, 16);
            this.label13.TabIndex = 3;
            this.label13.Text = "宽";
            //
            // label14
            //
            this.label14.Location = new System.Drawing.Point(288, 168);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(32, 16);
            this.label14.TabIndex = 3;
            this.label14.Text = "品牌";
            //
            // label15
            //
            this.label15.Location = new System.Drawing.Point(216, 168);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(32, 16);
            this.label15.TabIndex = 3;
            this.label15.Text = "净重";
            //
            // label16
            //
            this.label16.Location = new System.Drawing.Point(360, 168);
            this.label16.Name = "label16";
            this.label16.Size = new System.Drawing.Size(32, 16);
            this.label16.TabIndex = 3;
            this.label16.Text = "颜色";
            //
            // label17
            //
            this.label17.Location = new System.Drawing.Point(168, 224);
            this.label17.Name = "label17";
            this.label17.Size = new System.Drawing.Size(72, 16);
            this.label17.TabIndex = 3;
            this.label17.Text = "准备周期";
            //
            // label18
            //
            this.label18.Location = new System.Drawing.Point(248, 224);
            this.label18.Name = "label18";
            this.label18.Size = new System.Drawing.Size(64, 16);
            this.label18.TabIndex = 3;
            this.label18.Text = "生产周期";
            //
            // label19
            //
            this.label19.Location = new System.Drawing.Point(336, 224);
            this.label19.Name = "label19";
            this.label19.Size = new System.Drawing.Size(72, 16);
            this.label19.TabIndex = 3;
            this.label19.Text = "最小包装量";
            //
            // label20
            //
            this.label20.Location = new System.Drawing.Point(88, 224);
            this.label20.Name = "label20";
            this.label20.Size = new System.Drawing.Size(72, 16);
            this.label20.TabIndex = 3;
            this.label20.Text = "进货提前期";
            //
            // label21
            //
            this.label21.Location = new System.Drawing.Point(16, 224);
            this.label21.Name = "label21";
            this.label21.Size = new System.Drawing.Size(32, 16);
            this.label21.TabIndex = 3;
            this.label21.Text = "等级";
            //
            // label22
            //
            this.label22.Location = new System.Drawing.Point(168, 280);
            this.label22.Name = "label22";
            this.label22.Size = new System.Drawing.Size(72, 16);
            this.label22.TabIndex = 3;
            this.label22.Text = "最低库存";
            //
            // label23
            //
            this.label23.Location = new System.Drawing.Point(248, 280);
            this.label23.Name = "label23";
            this.label23.Size = new System.Drawing.Size(64, 16);
            this.label23.TabIndex = 3;
            this.label23.Text = "库存期限";
            //
            // label24
            //
            this.label24.Location = new System.Drawing.Point(16, 280);
            this.label24.Name = "label24";
            this.label24.Size = new System.Drawing.Size(32, 16);
            this.label24.TabIndex = 3;
            this.label24.Text = "批量";
            //
            // label25
            //
            this.label25.Location = new System.Drawing.Point(88, 280);
            this.label25.Name = "label25";
            this.label25.Size = new System.Drawing.Size(72, 16);
            this.label25.TabIndex = 3;
            this.label25.Text = "最高库存";
            //
            // label26
            //
            this.label26.Location = new System.Drawing.Point(336, 280);
            this.label26.Name = "label26";
            this.label26.Size = new System.Drawing.Size(72, 16);
            this.label26.TabIndex = 3;
            this.label26.Text = "最低销售量";
            //
            // label27
            //
            this.label27.Location = new System.Drawing.Point(248, 72);
            this.label27.Name = "label27";
            this.label27.Size = new System.Drawing.Size(56, 16);
            this.label27.TabIndex = 3;
            this.label27.Text = "录入者";
            //
            // label28
            //
            this.label28.Location = new System.Drawing.Point(328, 72);
            this.label28.Name = "label28";
            this.label28.Size = new System.Drawing.Size(72, 16);
            this.label28.TabIndex = 3;
            this.label28.Text = "录入日期";
            //
            // da2
            //
            this.da2.SelectCommand = this.sqlSelectCommand2;
            this.da2.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
                                                                                          new System.Data.Common.DataTableMapping("Table", "物料计划类别", new System.Data.Common.DataColumnMapping[] {
                                                                                                                                                                                                    new System.Data.Common.DataColumnMapping("类别名称", "类别名称"),
                                                                                                                                                                                                    new System.Data.Common.DataColumnMapping("类别代码", "类别代码")})});
            //
            // sqlSelectCommand2
            //
            this.sqlSelectCommand2.CommandText = "SELECT 类别名称, 类别代码 FROM 物料计划类别";
            this.sqlSelectCommand2.Connection = this.sqlConnection1;
            //
            // MaterialsForm
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
            this.ClientSize = new System.Drawing.Size(648, 493);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.dataGrid1);
            this.Controls.Add(this.toolBar1);
            this.Name = "MaterialsForm";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "【物料主文件】";
            this.Load  = new System.EventHandler(this.MaterialsForm_Load);
            ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
            this.groupBox1.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.ResumeLayout(false);
 
        }
        #endregion
 
 
 
       //----------------读入数据,显示在窗体中-------------------
        private void MaterialsForm_Load(object sender, System.EventArgs e)
        {
            //填充【计量单位】下拉列表框的下拉选项
            cmb1.Items.Clear();
            string sql="select distinct 计量单位 from 物料主文件";
            SqlCommand thisCommand=new SqlCommand(sql,tempConnection);
            try
            {
                tempConnection.Open();
                SqlDataReader thisReader=thisCommand.ExecuteReader();
                while(thisReader.Read())
                {
                    cmb1.Items.Add(thisReader.GetValue(0).ToString().Trim());
                }
            }
            catch(SqlException ex)
            {
                MessageBox.Show(ex.Message,"错误");
            }
             
            //为【计划类别】下拉列表框绑定数据并设置类别名称显示
            cmb2.DataSource=dataSet11;
            cmb2.DisplayMember="物料计划类别.类别名称";
            cmb2.ValueMember="物料计划类别.类别代码";
            cmb2.DataBindings.Add("SelectedValue",dataSet11,"物料主文件.计划类别");
             
            //为数据集添加数据项浏览控制
            cmOrders=(CurrencyManager) BindingContext[dataSet11,"物料主文件"];
 
            da1.SelectCommand.Parameters[0].Value="%%";
            da1.SelectCommand.Parameters[1].Value="%%";
            da1.SelectCommand.Parameters[2].Value="%%";
 
            da1.Fill(dataSet11);
            da2.Fill(dataSet11);
        }
 
        //-----------处理数据导航按钮事务---------------
        private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
        {
            if (e.Button.ToolTipText == "首记录")
            {
                this.dataGrid1.UnSelect(cmOrders.Position); //取消原选中的行
                cmOrders.Position = 0;
                this.dataGrid1.Select(cmOrders.Position); //选中当前行
                this.dataGrid1.CurrentRowIndex = cmOrders.Position; //移动表头指示图标
                return;
                 
            }
            if (e.Button.ToolTipText == "上一记录")
            {
                if (cmOrders.Position >= 0)
                {
                    this.dataGrid1.UnSelect(cmOrders.Position);
                    cmOrders.Position--;
                    this.dataGrid1.Select(cmOrders.Position);     
                    this.dataGrid1.CurrentRowIndex = cmOrders.Position;
                }
                return;
            }
            if (e.Button.ToolTipText == "下一记录")
            {
                if (cmOrders.Position <= cmOrders.Count-1)
                {
                    this.dataGrid1.UnSelect(cmOrders.Position);
                    cmOrders.Position  ;
                    this.dataGrid1.Select(cmOrders.Position);      
                    this.dataGrid1.CurrentRowIndex = cmOrders.Position;
                }
                return;
            }
            if (e.Button.ToolTipText == "尾记录")
            {
                this.dataGrid1.UnSelect(cmOrders.Position);
                cmOrders.Position = cmOrders.Count-1;
                this.dataGrid1.Select(cmOrders.Position);      
                this.dataGrid1.CurrentRowIndex = cmOrders.Position;
                return;
            }
            if(e.Button.ToolTipText=="新增")
            {
                cmOrders.AddNew();
                //设置默认值
                txt4.Text="9999";
                txt5.Text="新增物料";
                cmb1.SelectedIndex=0;
                SetModifyMode(true);
            }
            if(e.Button.ToolTipText=="修改")
            {
                SetModifyMode(true);
            }
            if(e.Button.ToolTipText=="删除")
            {
                 
                DialogResult result=MessageBox.Show("确认删除?","删除数据",MessageBoxButtons.OKCancel);
                if(result==DialogResult.OK)
                    if(cmOrders.Count>0)
                        cmOrders.RemoveAt(cmOrders.Position);                      
                    else
                        MessageBox.Show("表中为空,已无可删除数据","提示",MessageBoxButtons.OK,MessageBoxIcon.Error);
            }
            if(e.Button.ToolTipText=="提交")
            {
                if(txt4.Text.Trim()=="")//检查非空字段
                {
                    MessageBox.Show("物料编号不能为空","提示",MessageBoxButtons.OK,MessageBoxIcon.Error);
                    return;
                }
                if(txt5.Text.Trim()=="")
                {
                    MessageBox.Show("物料名称不能为空","提示",MessageBoxButtons.OK,MessageBoxIcon.Error);
                    return;
                }
 
                cmOrders.EndCurrentEdit();
                if(dataSet11.GetChanges()!=null)
                {
                    try
                    {
                        da1.Update(dataSet11);
                        SetModifyMode(false);
                    }
                    catch(Exception express)
                    {
                        MessageBox.Show(express.ToString(),"提示",MessageBoxButtons.OK,MessageBoxIcon.Error);
                        dataSet11.RejectChanges();
                    }
                }
                return;
            }
 
            if (e.Button.ToolTipText == "取消")
            {
                try
                {
                    cmOrders.CancelCurrentEdit();  //取消编辑
                    SetModifyMode(false);
                }
                catch(Exception express)
                {
                    MessageBox.Show(express.ToString(),"提示",MessageBoxButtons.OK,MessageBoxIcon.Error);
                }
                return;
            }
 
            if(e.Button.ToolTipText=="退出")
            {
                if(dataSet11.HasChanges())
                {
                    DialogResult result=MessageBox.Show("数据集有被修改但尚未提交的数据,是否提交?","确认",MessageBoxButtons.OKCancel);
                    if(result==DialogResult.OK)
                        da1.Update(dataSet11);
                }
                this.Close();
            }
        }
 
        //--------------对控件的Enable属性做设置---------------
        private void SetModifyMode(bool blnModify)
        {
            //设置文本框
            txt4.ReadOnly=!blnModify;
            txt5.ReadOnly=!blnModify;
            txt6.ReadOnly=!blnModify;
            txt7.ReadOnly=!blnModify;
            txt8.ReadOnly=!blnModify;
            txt9.ReadOnly=!blnModify;
            txt10.ReadOnly=!blnModify;
            txt11.ReadOnly=!blnModify;
            txt12.ReadOnly=!blnModify;
            txt13.ReadOnly=!blnModify;
            txt14.ReadOnly=!blnModify;
            txt15.ReadOnly=!blnModify;
            txt16.ReadOnly=!blnModify;
            txt17.ReadOnly=!blnModify;
            txt18.ReadOnly=!blnModify;
            txt19.ReadOnly=!blnModify;
            txt20.ReadOnly=!blnModify;
            txt21.ReadOnly=!blnModify;
            txt22.ReadOnly=!blnModify;
            txt23.ReadOnly=!blnModify;
            txt24.ReadOnly=!blnModify;
            txt25.ReadOnly=!blnModify;
            txt26.ReadOnly=!blnModify;
            txt27.ReadOnly=!blnModify;
            txt28.ReadOnly=!blnModify;
            txt29.ReadOnly=!blnModify;
            //设置两个下拉列表框
            cmb1.Enabled=blnModify;
            cmb2.Enabled=blnModify;
            //编辑时不允许搜索数据
            btnSearch.Enabled=!blnModify;
            //设置表格的只读模式
            dataGrid1.ReadOnly=!blnModify;
        }
 
        //----------根据输入搜索数据----------
        private void btnSearch_Click(object sender, System.EventArgs e)
        {          
            da1.SelectCommand.Parameters[0].Value="%%";
            da1.SelectCommand.Parameters[1].Value="%%";
            da1.SelectCommand.Parameters[2].Value="%%";
            //根据用户在文本框中的输入来设置SQL查询的参数
            if(txt1.Text.Trim()!="")
            {
                da1.SelectCommand.Parameters[0].Value="%" txt1.Text.Trim() "%";
            }
            if(txt2.Text.Trim()!="")
                 
            {
                da1.SelectCommand.Parameters[1].Value="%" txt2.Text.Trim() "%";
            }
            if(txt3.Text.Trim()!="")
                 
            {
                da1.SelectCommand.Parameters[2].Value="%" txt3.Text.Trim() "%";
            }
            //清空数据表,并根据新设置的查询参数重新填充
            dataSet11.物料主文件.Clear();
            da1.Fill(dataSet11);
        }
    }
}


实例下载地址

C# 生产管理系统源码(含数据库脚本)

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警