Commit 1b6d2154 by Tapio Haapala

Kortin näyttö henkilön hakuun ja lukitus paikka editoriin

1 parent 4ecffbb7
......@@ -47,12 +47,13 @@
this.cardLocationInputToolStripButton = new System.Windows.Forms.ToolStripButton();
this.incomingFormToolStripButton = new System.Windows.Forms.ToolStripButton();
this.cardInfoToolStripButton = new System.Windows.Forms.ToolStripButton();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
this.TopPanel = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label();
this.MapsComboBox = new System.Windows.Forms.ComboBox();
this.panel1 = new System.Windows.Forms.Panel();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
this.UnlockToolStripButton = new System.Windows.Forms.ToolStripButton();
((System.ComponentModel.ISupportInitialize)(this.MapPictureBox)).BeginInit();
this.toolStrip1.SuspendLayout();
this.TopPanel.SuspendLayout();
......@@ -132,6 +133,7 @@
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripSaveButton,
this.toolStripRefreshButton,
this.UnlockToolStripButton,
this.usersToolStripPrintButton,
this.toolStripSeparator1,
this.toolStripButton1,
......@@ -222,6 +224,24 @@
this.cardInfoToolStripButton.Text = "Kortin tiedot";
this.cardInfoToolStripButton.Click += new System.EventHandler(this.cardInfoToolStripButton_Click);
//
// toolStripButton2
//
this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(23, 22);
this.toolStripButton2.Text = "Ruokailutilasto";
//
// toolStripButton3
//
this.toolStripButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton3.Name = "toolStripButton3";
this.toolStripButton3.Size = new System.Drawing.Size(23, 22);
this.toolStripButton3.Text = "Laukkuparkki";
//
// TopPanel
//
this.TopPanel.Controls.Add(this.label3);
......@@ -261,23 +281,16 @@
this.panel1.Size = new System.Drawing.Size(284, 426);
this.panel1.TabIndex = 16;
//
// toolStripButton2
// UnlockToolStripButton
//
this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(23, 22);
this.toolStripButton2.Text = "Ruokailutilasto";
//
// toolStripButton3
//
this.toolStripButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton3.Name = "toolStripButton3";
this.toolStripButton3.Size = new System.Drawing.Size(23, 22);
this.toolStripButton3.Text = "Laukkuparkki";
this.UnlockToolStripButton.CheckOnClick = true;
this.UnlockToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.UnlockToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("UnlockToolStripButton.Image")));
this.UnlockToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.UnlockToolStripButton.Name = "UnlockToolStripButton";
this.UnlockToolStripButton.Size = new System.Drawing.Size(23, 22);
this.UnlockToolStripButton.Text = "toolStripButton4";
this.UnlockToolStripButton.ToolTipText = "Unlock place map";
//
// MainForm
//
......@@ -329,6 +342,7 @@
private System.Windows.Forms.ToolStripButton cardInfoToolStripButton;
private System.Windows.Forms.ToolStripButton toolStripButton2;
private System.Windows.Forms.ToolStripButton toolStripButton3;
private System.Windows.Forms.ToolStripButton UnlockToolStripButton;
}
}
......@@ -839,6 +839,8 @@ namespace MoyaAdminUI
{
mouseDownPoint = e.Location;
mouseDownComputerPlace = findPlace(mouseDownPoint);
//if (UnlockToolStripButton.Checked)
//{
if (mouseDownComputerPlace != null)
{
//editComputerPlace(mouseDownComputerPlace);
......@@ -854,6 +856,7 @@ namespace MoyaAdminUI
{
editComputerPlace(null);
}
//}
}
}
......@@ -892,10 +895,11 @@ namespace MoyaAdminUI
{
unsafe
{
// if drag start top of place then move
if (e.Button == MouseButtons.Left && mouseDownComputerPlace != null)
if (UnlockToolStripButton.Checked && e.Button == MouseButtons.Left && mouseDownComputerPlace != null)
{
//drag & drop
......@@ -961,13 +965,39 @@ namespace MoyaAdminUI
MapPictureBox.Refresh();
}
// if drag start from blank area then paint new places
// if drag start from blank area then paint selection area
else if (e.Button == MouseButtons.Left && mouseDownComputerPlace == null)
{
//set multiselect range so we can draw the selectarea rectangle
multiSelectStart = mouseDownPoint;
multiSelectEnd = e.Location;
int Xleft, Xright, Yup, Ybottom;
if (mouseDownPoint.X > e.Location.X)
{
Xleft = e.Location.X;
Xright = mouseDownPoint.X;
}
else
{
Xleft = mouseDownPoint.X;
Xright = e.Location.X;
}
if (mouseDownPoint.Y > e.Location.Y)
{
Yup = e.Location.Y;
Ybottom = mouseDownPoint.Y;
}
else
{
Yup = mouseDownPoint.Y;
Ybottom = e.Location.Y;
}
multiSelectStart = new Point(Xleft, Yup);
multiSelectEnd = new Point(Xright, Ybottom);
//selecting items
disableEvents = true;
this.PlacesListView.BeginUpdate();
......
......@@ -152,42 +152,58 @@
RK5CYII=
</value>
</data>
<data name="UnlockToolStripButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJGSURBVDhPrZLpS9MBGMf35/QiQvJFZQekhJRKUR60xKl4
ZGnlJolHkld7oZZdrjzS5m0jJDdvHV7llZmbZ0gkBtmaxsyj5n6f/M0x+In1IvrC8+bh+/0+z/fhkf13
TI0aoz/NmZgzDfN+qIuBjpe06EqpL8sLdFH+DPNId+z85Cjr1lkctkmElSEESwfW6UrKC1Mpzlf6uqh7
Y2Z8gDWLmYXJVvIz4si9qSBLeYnFwRyWRjLIUclxUffGWJ8B4fswmYlyVNFnDok9VZSfZ9XTOwizKaTE
nv27Qa++EiytJEX4SojVT9QI00oSFT57G/Tryz2MjWW01z+muaaQJm0Bjdo8dCVqGkpzqdVkUVV0G+2D
W1QUplF+L9XDJd1B5wsNqwttsNzjLOGbEcfXTra+tGH/bMCx1O7uL0408DA7QbpJS+39HfG0CocpAftY
DJuDYaz1BrHxWg4zSTjM17G/u8yHV4GkXz0vNWjS3gVrD1sT8fx6G8XGm1AGq0+jCNlPd0OkW7w5rGBG
509yTIDUQMwrWLr4ORLJ+sBFVo3nCAvaR2T40e065hav9QUzVeODMlx6ZJmuVO3Mu94fgq0rgJVmH6fZ
brGt0x9ThRfXQr2lBnWabOyLemwdfizrT/Kj5wJ1jwKJCDtCifqUW7xi8Ga8+CDx8hNSg2pNJgujWiae
Hcb8/Dgf2yOYbwl1HkzMLK4tThbFhtwDxAV77TIoyvIsSI9FnaxwVs72+2beCHFeWzyYmFlcW5wsiq8E
eUn/4N8hk/0Gifq8WDRVD4YAAAAASUVORK5CYII=
</value>
</data>
<data name="usersToolStripPrintButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA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="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAMMSURBVDhPdVJdSJNhGPW+biq6KfSiKH/SoD9tFllqaenU
rE0zZU5tOtvaMEvc1KW2TPSbbZ/70djy0/xJUqbpZl0kyqIfFBV1JOqkNlRWIqH9iNXJzyZS1oH34uU8
z3nPc57XbQ1qQ5c7SZnEKspkLjMYnaXaVmehqsksIerEWcUGd1fZv0FSZoaq1mQs72gB2f8IKms1lBOF
uNYdA24FAUGB2piSXcFwlf8J+mW6WdqpQMlYLkwfu9H3xYaMR3kofXsD3JYQhBYrcVkgN0bzpRud0LZz
a/VIeXkEmqkcmD9a8GZhGKNfP6DBYURyZRFOVo7imPwWIjg3xa62ddAzJyrqweuKRaE1AfffETDYi0AO
GsCra0Kaeg7s0il4V0fhNFtkdrWtgw4sg7QhVpcKzouTyHwdCqH+OvgPTEhVDyG53AF/sg67a87gRFS6
09W2DjptkX4ZCQUynKICEfwkFvFKApmVDqQophEnH8ceAwce2kD4M/8hQK9KoJsDXzsLtjgRoZpEHH2c
AEYNiUtyG2LyhxHCj4RvThAOhXM3jiAhKLGI6MEVzRK4xAQistNxgIqBd905eKryEHazD4H8TBxnxeNw
OHdjiPQnofecVmbFVeIpcjWNuFFhQJJEgV13AxCQwQeTR0Aoq3ovI9umJUSTPesORfEkaqZLYsVFeaO0
qr772+CYA4tffmJ2fgltz4cgkOkRmS6DtrEbf3Oi4uqZ8KQC1qpAkaat3Wpz4qpUNbnjYNSCb3jq8p2q
jh8GYx+U9S++Nz8bhqbBsrDz8AWrbyhvRFJe36t/bAHj/LX2VYFbmtbFHwA2eZ2d8gnm+lQ3v+7/uXKf
/wzYZpfQP/4JPYMfsHUfk7goLPORkm1TPQMz8AxKXVwVyLvX3G4Zs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H6Ay6P/1Ae+84NvuxiUtpJb5SstnZ3jMC7+OJU4sCOaWNLbYex8KcFR3RQkV/ruZJ/yZv1uxG71As
n33BCcPLXGnVq467Fa3wCohdcpBeXB0tUdeN1La8QUePC89sg8jVNCHovGgknCdTrcdt3RexlAGNmLRi
dignl2KwxS6fEI7LKzCW2rKftZj0+pyHx19pnfSmB+/elgAAAABJRU5ErkJggg==
</value>
</data>
<data name="cardLocationInputToolStripButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
......@@ -221,20 +237,20 @@
<data name="cardInfoToolStripButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAL3SURBVDhPdVNbSJNhGP7FRt2YiEVelNOp25zHLDM1T6ip
O0/nYZ7SVNI008oQAo2w7f/nTi4P2TxVN0lXQQRdlB1ISEiMMgoD0crLwQh2M9jb+/5OSaIXnpv/fZ7n
e7/ne39mT+UN7ouUs1lRcuN4tIJdFSm439E82FX6Rj3iBNh7S6LmQqLkpr44tXkjtdrmz2wchcxzY5Be
74TUagfE6zh/rIrbECGHuAHZdgnzBg+IFKYhmW7Ym3t+Aso6p6Hk4hQoLs1AaecUZKHRidoRSNRbQaxi
vcQlTUDOMCKV0SDTmT1F7fdA0zPHG8i7puHR84/w7PUnyG1yQJphBJIr7TiJBSQa1kMaXhxRevtwnJZb
yGmeAG3vfVB2z/Knl3RMwdj8Ikw/fgUZNSZIqbLjBDaQaIdBrDFDnIpbIC0jUhjlqZU2twqFZCDvmoH8
1knIbhrnr6DrmQGploNYtRkwA4hRsjwkOosbQ5Yz2OjPaBz10ejFHS5+1Fg1B00D87DybQueLqyAVHUL
hGUmwJB3IS23+MSoxfTNLJ1G4dF41BSWG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L6dttdBqFR+NRU1xsgVRM/93CMryZ+wJx2r5/DOJLnci32xgFZ+9JrHBvxuB4
O00iU1gv3n//r0Gcybkp43ACqYFnE0tc6xL8rr8JdMLLuS0Dpf4G4DIhtnqUQWKpa520wi2oy5wzyhIH
RGOTgpIZBiCl2gNv55dhdv4rpJRbBEOaChdNuA0VaoRboFJwDrO6wuVXlVHDJQTZwT+Bz0trsLj0Ay7b
piGt2g0nqjyCcVrtbT9pBDEVbRWO1H+qYXQjC8OkQOlWKq8huqfAeMkLec1jkN/ihdzGOxvE3bOJVOG4
30mmwW7cgVVthy9AO1Fy5QGUXn0IJgTXNRk43Ty+qkIOcbdluxWEEDFhktBjmecL4vW94xm1jg95jZ6f
uU3uX5nV/HyC7ro34mRjERMaGYZcOj2YhDtFvyi5HkGIGZFIFXww6ozokMIsCpfVBIdEatA/GXuxiKMI
MtnPMEzQH5GbqgS3rfXtAAAAAElFTkSuQmCC
</value>
</data>
<data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
......
......@@ -164,6 +164,7 @@
//
// bookNumericUpDown
//
this.bookNumericUpDown.Enabled = false;
this.bookNumericUpDown.Location = new System.Drawing.Point(363, 159);
this.bookNumericUpDown.Name = "bookNumericUpDown";
this.bookNumericUpDown.ReadOnly = true;
......@@ -172,6 +173,7 @@
//
// pageNumericUpDown
//
this.pageNumericUpDown.Enabled = false;
this.pageNumericUpDown.Location = new System.Drawing.Point(363, 185);
this.pageNumericUpDown.Name = "pageNumericUpDown";
this.pageNumericUpDown.ReadOnly = true;
......@@ -180,6 +182,7 @@
//
// slotNumericUpDown
//
this.slotNumericUpDown.Enabled = false;
this.slotNumericUpDown.Location = new System.Drawing.Point(363, 211);
this.slotNumericUpDown.Name = "slotNumericUpDown";
this.slotNumericUpDown.ReadOnly = true;
......
......@@ -30,14 +30,17 @@
{
this.components = new System.ComponentModel.Container();
this.usersListView = new System.Windows.Forms.ListView();
this.button1 = new System.Windows.Forms.Button();
this.searchTextBox = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.button1 = new System.Windows.Forms.Button();
this.searchTextBox = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.searchTimer = new System.Windows.Forms.Timer(this.components);
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.CardState = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// usersListView
......@@ -53,16 +56,37 @@
this.usersListView.FullRowSelect = true;
this.usersListView.Location = new System.Drawing.Point(12, 58);
this.usersListView.Name = "usersListView";
this.usersListView.Size = new System.Drawing.Size(570, 241);
this.usersListView.Size = new System.Drawing.Size(517, 349);
this.usersListView.TabIndex = 0;
this.usersListView.UseCompatibleStateImageBehavior = false;
this.usersListView.View = System.Windows.Forms.View.Details;
this.usersListView.SelectedIndexChanged += new System.EventHandler(this.usersListView_SelectedIndexChanged);
this.usersListView.DoubleClick += new System.EventHandler(this.usersListView_DoubleClick);
//
// columnHeader1
//
this.columnHeader1.Text = "Nick";
this.columnHeader1.Width = 118;
//
// columnHeader2
//
this.columnHeader2.Text = "Firstname";
this.columnHeader2.Width = 112;
//
// columnHeader3
//
this.columnHeader3.Text = "Lastname";
this.columnHeader3.Width = 150;
//
// columnHeader4
//
this.columnHeader4.Text = "Login";
this.columnHeader4.Width = 93;
//
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.button1.Location = new System.Drawing.Point(507, 305);
this.button1.Location = new System.Drawing.Point(454, 412);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 1;
......@@ -86,35 +110,35 @@
this.label1.TabIndex = 3;
this.label1.Text = "Search";
//
// columnHeader1
//
this.columnHeader1.Text = "Nick";
this.columnHeader1.Width = 118;
//
// columnHeader2
//
this.columnHeader2.Text = "Firstname";
this.columnHeader2.Width = 112;
// searchTimer
//
// columnHeader3
this.searchTimer.Tick += new System.EventHandler(this.searchTimer_Tick);
//
this.columnHeader3.Text = "Lastname";
this.columnHeader3.Width = 150;
// pictureBox1
//
// columnHeader4
this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.pictureBox1.Location = new System.Drawing.Point(535, 12);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(260, 395);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 4;
this.pictureBox1.TabStop = false;
//
this.columnHeader4.Text = "Login";
this.columnHeader4.Width = 93;
// CardState
//
// searchTimer
//
this.searchTimer.Tick += new System.EventHandler(this.searchTimer_Tick);
this.CardState.Location = new System.Drawing.Point(535, 412);
this.CardState.Name = "CardState";
this.CardState.ReadOnly = true;
this.CardState.Size = new System.Drawing.Size(260, 20);
this.CardState.TabIndex = 5;
//
// UsersFinderForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(594, 333);
this.ClientSize = new System.Drawing.Size(807, 447);
this.Controls.Add(this.CardState);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.searchTextBox);
this.Controls.Add(this.button1);
......@@ -122,6 +146,7 @@
this.Name = "UsersFinderForm";
this.Text = "Users Finder";
this.Load += new System.EventHandler(this.UsersFinderForm_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
......@@ -138,5 +163,7 @@
private System.Windows.Forms.TextBox searchTextBox;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Timer searchTimer;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.TextBox CardState;
}
}
\ No newline at end of file
using System;
using MoyaAdminLib;
using MoyaAdminUI.MoyaAPI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
......@@ -6,6 +8,7 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Script.Serialization;
using System.Windows.Forms;
namespace MoyaAdminUI
......@@ -81,5 +84,22 @@ namespace MoyaAdminUI
this.DialogResult = DialogResult.OK;
}
private void usersListView_SelectedIndexChanged(object sender, EventArgs e)
{
pictureBox1.Image = null;
if (usersListView.SelectedItems.Count != 1)
{
return;
}
User user = (User)usersListView.SelectedItems[0].Tag;
RestClient client = new RestClient(Properties.Settings.Default.ApiURL);
string json = client.MakeRequest("user/card/" + user.EventUserId);
var ser = new JavaScriptSerializer();
Card card = ser.Deserialize<Card>(json);
pictureBox1.ImageLocation = RestClient.GetRequestURL(Properties.Settings.Default.ApiURL, "card/GetImage/" + card.cardId);
CardState.Text = card.state;
}
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!