Merge branch 'master' of http://scddns.f3322.net:13000/sc/Audit_APP
This commit is contained in:
commit
f9a9bb1723
10 files changed
+97
-25
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using GalaSoft.MvvmLight;
|
||||
using Audit.View;
|
||||
using GalaSoft.MvvmLight;
|
||||
using Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -52,8 +53,8 @@ namespace Audit.ViewModel
|
||||
/// </summary>
|
||||
public QueryViewModel()
|
||||
{
|
||||
|
||||
dyelots = new DyelotsProvider().Select();
|
||||
dyelots = new DyelotsProvider().Select();//显示单号
|
||||
// dyelotsBulkedRecipe = new DyelotsBulkedRecipeProvider().Select();//显示明显
|
||||
DispatcherTimer timer = new DispatcherTimer//初始化循环,每0.5秒调用一次Tick_Event
|
||||
{
|
||||
Interval = TimeSpan.FromSeconds(0.1)
|
||||
@@ -65,8 +66,32 @@ namespace Audit.ViewModel
|
||||
int a = 0;//计数器用变量
|
||||
void Tick_Event(object sender, EventArgs e)//Tick_Event周期执行事件
|
||||
{
|
||||
|
||||
if (a == 20)//
|
||||
if (QueryView.sqlButton_Click == 0)
|
||||
{
|
||||
dyelots = new DyelotsProvider().Select();//显示单号
|
||||
}
|
||||
if (QueryView.sqlButton_Click == 2)
|
||||
{
|
||||
DyelotsBulkedRecipe = new DyelotsBulkedRecipeProvider().Selectsql(QueryView.DyelotsBulkedRecipe_Button);//根据单号查询明细
|
||||
QueryView.sqlButton_Click = 0;
|
||||
}
|
||||
if (QueryView.sqlButton_Click == 1)
|
||||
{
|
||||
DyelotsBulkedRecipe = new DyelotsBulkedRecipeProvider().Selectsql(QueryView.DyelotsBulkedRecipe_Button);//根据单号查询明细
|
||||
Dyelots = new DyelotsProvider().Selectsql(QueryView.Dyelots_Button);//根据单号查询头
|
||||
QueryView.sqlButton_Click = 0;
|
||||
}
|
||||
if (QueryView.sqlButton_Click == 3)
|
||||
{
|
||||
Dyelots = new DyelotsProvider().Selecttime(QueryView.Dyelots_Button);//根据单号查询头
|
||||
QueryView.sqlButton_Click = 0;
|
||||
}
|
||||
if (QueryView.sqlButton_Click == 4)
|
||||
{
|
||||
Dyelots = new DyelotsProvider().SelectMachine(QueryView.Dyelots_Button);//根据单号查询头
|
||||
QueryView.sqlButton_Click = 0;
|
||||
}
|
||||
if (a == 20)//
|
||||
{
|
||||
|
||||
a = 0;
|
||||
|
||||
Reference in new issue
Block a user