85 lines
2.0 KiB
C#
85 lines
2.0 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Data;
|
|||
|
using System.Drawing;
|
|||
|
using System.Text;
|
|||
|
using System.Linq;
|
|||
|
using System.Windows.Forms;
|
|||
|
using DevExpress.XtraBars;
|
|||
|
//using DeiNiu.wms.Logical;
|
|||
|
using Microsoft.Reporting.WinForms;
|
|||
|
using DeiNiu.wms.win.ServiceReferenceStockLocation;
|
|||
|
using DeiNiu.wms.win.ServiceReferenceStockOutPickRequest;
|
|||
|
using DeiNiu.Utils;
|
|||
|
using DeiNiu.wms.win.utils.print;
|
|||
|
using System.Drawing.Printing;
|
|||
|
using DeiNiu.wms.Data.Model;
|
|||
|
|
|||
|
namespace DeiNiu.wms.win
|
|||
|
{
|
|||
|
public partial class ImageViewForm : BasicRibbonForm
|
|||
|
{
|
|||
|
|
|||
|
public ImageViewForm()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
string vender;
|
|||
|
|
|||
|
public string Vender
|
|||
|
{
|
|||
|
get { return vender; }
|
|||
|
set { vender = value; }
|
|||
|
}
|
|||
|
string location1;
|
|||
|
|
|||
|
public string Location1
|
|||
|
{
|
|||
|
get { return location1; }
|
|||
|
set { location1 = value; }
|
|||
|
}
|
|||
|
string location2;
|
|||
|
|
|||
|
public string Location2
|
|||
|
{
|
|||
|
get { return location2; }
|
|||
|
set { location2 = value; }
|
|||
|
}
|
|||
|
|
|||
|
public void setVender()
|
|||
|
{
|
|||
|
lbVender.Text = vender;
|
|||
|
try
|
|||
|
{
|
|||
|
loadPicture();
|
|||
|
}
|
|||
|
catch (Exception er)
|
|||
|
{
|
|||
|
showErrorMsg(er);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
void loadPicture()
|
|||
|
{
|
|||
|
picbox1.SizeMode = PictureBoxSizeMode.StretchImage;
|
|||
|
picbox1.BackgroundImageLayout = ImageLayout.Stretch;
|
|||
|
picbox2.SizeMode = PictureBoxSizeMode.StretchImage;
|
|||
|
picbox2.BackgroundImageLayout = ImageLayout.Stretch;
|
|||
|
picbox1.ImageLocation = location1;
|
|||
|
picbox2.ImageLocation = location2;
|
|||
|
if(picbox1.ImageLocation!=null)
|
|||
|
picbox1.Show();
|
|||
|
if (picbox2.ImageLocation != null)
|
|||
|
picbox2.Show();
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|