레이아우슾로토 적용

This commit is contained in:
chi
2021-05-22 14:04:34 +09:00
parent 478896089f
commit e1dce272bb
24 changed files with 1991 additions and 775 deletions

View File

@@ -210,6 +210,7 @@ namespace FPJ0000.EBoard
//this.fpSpread1.Sheets[0].Cells[$"A{row + 1}:{c3}{row + 1}"].Border =
// new FarPoint.Win.ComplexBorder(
// new FarPoint.Win.ComplexBorderSide(FarPoint.Win.ComplexBorderSideStyle.MediumLine));
var = (char)( 65 + ((MaxCol) * 2 - 1));// "T";
//차트데이터
var chart1 = this.fpSpread1.ActiveSheet.Charts[0];
@@ -218,7 +219,7 @@ namespace FPJ0000.EBoard
var ser1 = chart1.Model.PlotAreas[0].Series[0] as FarPoint.Win.Chart.ClusteredBarSeries;
var ser1_df = ser1.Series[0].Values.DataSource as FarPoint.Win.Spread.Chart.SeriesDataField;
var ser1_cn = ser1.Series[0].CategoryNames.DataSource as FarPoint.Win.Spread.Chart.SeriesDataField;
ser1_df.Formula = $"Performance!$R$4:$R${row}";
ser1_df.Formula = $"Performance!${비용절감줄}$4:${비용절감줄}${row}";
ser1_cn.Formula = $"Performance!$A$4:$A${row}";
var ser2 = chart1.Model.PlotAreas[0].Series[1] as FarPoint.Win.Chart.LineSeries;
@@ -238,7 +239,7 @@ namespace FPJ0000.EBoard
var ser31 = chart3.Model.PlotAreas[0].Series[0] as FarPoint.Win.Chart.PieSeries;
var ser31_df = ser31.Values.DataSource as FarPoint.Win.Spread.Chart.SeriesDataField;
var ser31_cn = ser31.CategoryNames.DataSource as FarPoint.Win.Spread.Chart.SeriesDataField;
ser31_df.Formula = $"Performance!$R$4:$R${row}";
ser31_df.Formula = $"Performance!${비용절감줄}$4:${비용절감줄}${row}";
ser31_cn.Formula = $"Performance!$A$4:$A${row}";
}
void Refresh2()

View File

@@ -22,6 +22,7 @@ namespace FPJ0000
public int rowspan { get; set; }
public int colspan { get; set; }
public Nullable<int> project { get; set; }
public string reserve { get; set; }
public string remark { get; set; }
public string wuid { get; set; }
public System.DateTime wdate { get; set; }

View File

@@ -339,6 +339,18 @@
<Compile Include="Projects.cs">
<DependentUpon>Model1.tt</DependentUpon>
</Compile>
<Compile Include="Project\ctlLayout.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Project\ctlLayout.Designer.cs">
<DependentUpon>ctlLayout.cs</DependentUpon>
</Compile>
<Compile Include="Project\fLayoutEdit.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Project\fLayoutEdit.Designer.cs">
<DependentUpon>fLayoutEdit.cs</DependentUpon>
</Compile>
<Compile Include="Project\fPartBuyStatus.cs">
<SubType>Form</SubType>
</Compile>
@@ -521,6 +533,9 @@
<Compile Include="Users.cs">
<DependentUpon>Model1.tt</DependentUpon>
</Compile>
<Compile Include="vEETGW_Project_LayoutList.cs">
<DependentUpon>Model1.tt</DependentUpon>
</Compile>
<Compile Include="vGroupUser.cs">
<DependentUpon>Model1.tt</DependentUpon>
</Compile>
@@ -589,6 +604,9 @@
<EmbeddedResource Include="Note\fNote.resx">
<DependentUpon>fNote.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Project\fLayoutEdit.resx">
<DependentUpon>fLayoutEdit.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Project\fPartBuyStatus.resx">
<DependentUpon>fPartBuyStatus.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -42,7 +42,8 @@ namespace FPJ0000
public virtual DbSet<vJobReportForUser> vJobReportForUser { get; set; }
public virtual DbSet<EETGW_ProjectsSchedule> EETGW_ProjectsSchedule { get; set; }
public virtual DbSet<Auth> Auth { get; set; }
public virtual DbSet<EETGW_Project_Layout> EETGW_Project_Layout { get; set; }
public virtual DbSet<Projects> Projects { get; set; }
public virtual DbSet<vEETGW_Project_LayoutList> vEETGW_Project_LayoutList { get; set; }
public virtual DbSet<EETGW_Project_Layout> EETGW_Project_Layout { get; set; }
}
}

View File

@@ -100,6 +100,7 @@
<Property Name="rowspan" Type="int" Nullable="false" />
<Property Name="colspan" Type="int" Nullable="false" />
<Property Name="project" Type="int" />
<Property Name="reserve" Type="varchar" MaxLength="255" />
<Property Name="remark" Type="varchar" MaxLength="255" />
<Property Name="wuid" Type="varchar" MaxLength="20" Nullable="false" />
<Property Name="wdate" Type="smalldatetime" Nullable="false" />
@@ -375,6 +376,25 @@
<Property Name="processs" Type="nvarchar" MaxLength="100" />
</EntityType>
<!--생성 중 오류 발생:
경고 6002: 테이블/뷰 'EE.dbo.vEETGW_Project_LayoutList'에 기본 키가 정의되지 않았습니다. 키가 유추되었고 읽기 전용 테이블/뷰로 정의되었습니다.-->
<EntityType Name="vEETGW_Project_LayoutList">
<Key>
<PropertyRef Name="idx" />
<PropertyRef Name="gcode" />
</Key>
<Property Name="idx" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="gcode" Type="varchar" MaxLength="10" Nullable="false" />
<Property Name="pdate" Type="varchar" MaxLength="10" />
<Property Name="edate" Type="varchar" MaxLength="50" />
<Property Name="ddate" Type="varchar" MaxLength="50" />
<Property Name="sdate" Type="varchar" MaxLength="50" />
<Property Name="name" Type="nvarchar" MaxLength="255" />
<Property Name="userManager" Type="varchar" MaxLength="50" />
<Property Name="memo" Type="nvarchar" MaxLength="255" />
<Property Name="isdel" Type="bit" />
<Property Name="status" Type="varchar" MaxLength="50" />
</EntityType>
<!--생성 중 오류 발생:
경고 6002: 테이블/뷰 'EE.dbo.vGroupUser'에 기본 키가 정의되지 않았습니다. 키가 유추되었고 읽기 전용 테이블/뷰로 정의되었습니다.-->
<EntityType Name="vGroupUser">
<Key>
@@ -478,6 +498,21 @@
<EntitySet Name="Purchase" EntityType="Self.Purchase" Schema="dbo" store:Type="Tables" />
<EntitySet Name="UserGroup" EntityType="Self.UserGroup" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
<EntitySet Name="vEETGW_Project_LayoutList" EntityType="Self.vEETGW_Project_LayoutList" store:Type="Views" store:Schema="dbo">
<DefiningQuery>SELECT
[vEETGW_Project_LayoutList].[idx] AS [idx],
[vEETGW_Project_LayoutList].[gcode] AS [gcode],
[vEETGW_Project_LayoutList].[pdate] AS [pdate],
[vEETGW_Project_LayoutList].[edate] AS [edate],
[vEETGW_Project_LayoutList].[ddate] AS [ddate],
[vEETGW_Project_LayoutList].[sdate] AS [sdate],
[vEETGW_Project_LayoutList].[name] AS [name],
[vEETGW_Project_LayoutList].[userManager] AS [userManager],
[vEETGW_Project_LayoutList].[memo] AS [memo],
[vEETGW_Project_LayoutList].[isdel] AS [isdel],
[vEETGW_Project_LayoutList].[status] AS [status]
FROM [dbo].[vEETGW_Project_LayoutList] AS [vEETGW_Project_LayoutList]</DefiningQuery>
</EntitySet>
<EntitySet Name="vGroupUser" EntityType="Self.vGroupUser" store:Type="Views" store:Schema="dbo">
<DefiningQuery>SELECT
[vGroupUser].[gcode] AS [gcode],
@@ -654,8 +689,9 @@
<EntitySet Name="vJobReportForUser" EntityType="EEModel.vJobReportForUser" />
<EntitySet Name="EETGW_ProjectsSchedule" EntityType="EEModel.EETGW_ProjectsSchedule" />
<EntitySet Name="Auth" EntityType="EEModel.Auth" />
<EntitySet Name="EETGW_Project_Layout" EntityType="EEModel.EETGW_Project_Layout" />
<EntitySet Name="Projects" EntityType="EEModel.Projects" />
<EntitySet Name="vEETGW_Project_LayoutList" EntityType="EEModel.vEETGW_Project_LayoutList" />
<EntitySet Name="EETGW_Project_Layout" EntityType="EEModel.EETGW_Project_Layout" />
</EntityContainer>
<EntityType Name="HolidayLIst">
<Key>
@@ -952,22 +988,6 @@
<Property Name="savecost" Type="Int32" />
<Property Name="scheapp" Type="Int32" />
</EntityType>
<EntityType Name="EETGW_Project_Layout">
<Key>
<PropertyRef Name="idx" />
</Key>
<Property Name="idx" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="gcode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
<Property Name="no" Type="Int32" Nullable="false" />
<Property Name="row" Type="Int32" Nullable="false" />
<Property Name="col" Type="Int32" Nullable="false" />
<Property Name="rowspan" Type="Int32" Nullable="false" />
<Property Name="colspan" Type="Int32" Nullable="false" />
<Property Name="project" Type="Int32" />
<Property Name="remark" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
<Property Name="wuid" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
<Property Name="wdate" Type="DateTime" Nullable="false" Precision="0" />
</EntityType>
<EntityType Name="Projects">
<Key>
<PropertyRef Name="idx" />
@@ -1024,6 +1044,40 @@
<Property Name="EB_ConstNew" Type="Double" />
<Property Name="EB_BoardName" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
</EntityType>
<EntityType Name="vEETGW_Project_LayoutList">
<Key>
<PropertyRef Name="idx" />
<PropertyRef Name="gcode" />
</Key>
<Property Name="idx" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="gcode" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="false" />
<Property Name="pdate" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
<Property Name="edate" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
<Property Name="ddate" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
<Property Name="sdate" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
<Property Name="name" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
<Property Name="userManager" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
<Property Name="memo" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
<Property Name="isdel" Type="Boolean" />
<Property Name="status" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
</EntityType>
<EntityType Name="EETGW_Project_Layout">
<Key>
<PropertyRef Name="idx" />
</Key>
<Property Name="idx" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="gcode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
<Property Name="no" Type="Int32" Nullable="false" />
<Property Name="row" Type="Int32" Nullable="false" />
<Property Name="col" Type="Int32" Nullable="false" />
<Property Name="rowspan" Type="Int32" Nullable="false" />
<Property Name="colspan" Type="Int32" Nullable="false" />
<Property Name="project" Type="Int32" />
<Property Name="reserve" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
<Property Name="remark" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
<Property Name="wuid" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
<Property Name="wdate" Type="DateTime" Nullable="false" Precision="0" />
</EntityType>
</Schema>
</edmx:ConceptualModels>
<!-- C-S mapping content -->
@@ -1419,23 +1473,6 @@
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="EETGW_Project_Layout">
<EntityTypeMapping TypeName="EEModel.EETGW_Project_Layout">
<MappingFragment StoreEntitySet="EETGW_Project_Layout">
<ScalarProperty Name="wdate" ColumnName="wdate" />
<ScalarProperty Name="wuid" ColumnName="wuid" />
<ScalarProperty Name="remark" ColumnName="remark" />
<ScalarProperty Name="project" ColumnName="project" />
<ScalarProperty Name="colspan" ColumnName="colspan" />
<ScalarProperty Name="rowspan" ColumnName="rowspan" />
<ScalarProperty Name="col" ColumnName="col" />
<ScalarProperty Name="row" ColumnName="row" />
<ScalarProperty Name="no" ColumnName="no" />
<ScalarProperty Name="gcode" ColumnName="gcode" />
<ScalarProperty Name="idx" ColumnName="idx" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Projects">
<EntityTypeMapping TypeName="EEModel.Projects">
<MappingFragment StoreEntitySet="Projects">
@@ -1493,6 +1530,41 @@
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="vEETGW_Project_LayoutList">
<EntityTypeMapping TypeName="EEModel.vEETGW_Project_LayoutList">
<MappingFragment StoreEntitySet="vEETGW_Project_LayoutList">
<ScalarProperty Name="status" ColumnName="status" />
<ScalarProperty Name="isdel" ColumnName="isdel" />
<ScalarProperty Name="memo" ColumnName="memo" />
<ScalarProperty Name="userManager" ColumnName="userManager" />
<ScalarProperty Name="name" ColumnName="name" />
<ScalarProperty Name="sdate" ColumnName="sdate" />
<ScalarProperty Name="ddate" ColumnName="ddate" />
<ScalarProperty Name="edate" ColumnName="edate" />
<ScalarProperty Name="pdate" ColumnName="pdate" />
<ScalarProperty Name="gcode" ColumnName="gcode" />
<ScalarProperty Name="idx" ColumnName="idx" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="EETGW_Project_Layout">
<EntityTypeMapping TypeName="EEModel.EETGW_Project_Layout">
<MappingFragment StoreEntitySet="EETGW_Project_Layout">
<ScalarProperty Name="wdate" ColumnName="wdate" />
<ScalarProperty Name="wuid" ColumnName="wuid" />
<ScalarProperty Name="remark" ColumnName="remark" />
<ScalarProperty Name="reserve" ColumnName="reserve" />
<ScalarProperty Name="project" ColumnName="project" />
<ScalarProperty Name="colspan" ColumnName="colspan" />
<ScalarProperty Name="rowspan" ColumnName="rowspan" />
<ScalarProperty Name="col" ColumnName="col" />
<ScalarProperty Name="row" ColumnName="row" />
<ScalarProperty Name="no" ColumnName="no" />
<ScalarProperty Name="gcode" ColumnName="gcode" />
<ScalarProperty Name="idx" ColumnName="idx" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
</EntityContainerMapping>
</Mapping>
</edmx:Mappings>

View File

@@ -22,8 +22,9 @@
<EntityTypeShape EntityType="EEModel.vJobReportForUser" Width="1.5" PointX="11.375" PointY="13.75" />
<EntityTypeShape EntityType="EEModel.EETGW_ProjectsSchedule" Width="1.5" PointX="0.75" PointY="4.75" />
<EntityTypeShape EntityType="EEModel.Auth" Width="1.5" PointX="5.375" PointY="9.75" />
<EntityTypeShape EntityType="EEModel.EETGW_Project_Layout" Width="1.5" PointX="5.375" PointY="13.75" />
<EntityTypeShape EntityType="EEModel.Projects" Width="1.5" PointX="13.375" PointY="12.75" />
<EntityTypeShape EntityType="EEModel.vEETGW_Project_LayoutList" Width="1.5" PointX="15.375" PointY="0.75" />
<EntityTypeShape EntityType="EEModel.EETGW_Project_Layout" Width="1.5" PointX="5.375" PointY="13.75" />
</Diagram>
</edmx:Diagrams>
</edmx:Designer>

View File

@@ -0,0 +1,37 @@

namespace FPJ0000.Project
{
partial class ctlLayout
{
/// <summary>
/// 필수 디자이너 변수입니다.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 사용 중인 모든 리소스를 정리합니다.
/// </summary>
/// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 디자이너 지원에 필요한 메서드입니다.
/// 이 메서드의 내용을 코드 편집기로 수정하지 마세요.
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
}
#endregion
}
}

View File

@@ -0,0 +1,219 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace FPJ0000.Project
{
public partial class ctlLayout : Control
{
public ctlLayout()
{
InitializeComponent();
items = new List<itemdata>();
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
// Redraw when resized
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.Resize += arLabel_Resize;
if (fontNo == null) fontNo = new Font("맑은 고딕", 12, FontStyle.Bold);
if (fontName == null) fontName = new Font("맑은 고딕", 10, FontStyle.Bold);
if (fontDue == null) fontDue = new Font("Consolas", 10, FontStyle.Bold);
}
public class itemdata
{
public string duedate { get; set; }
public string champion { get; set; }
public string body { get; set; }
public int no { get; set; }
public Color bodyColor { get; set; } = Color.Transparent;
public int project { get; set; }
public RectangleF rect { get; set; }
public string reserve { get; set; }
}
public List<itemdata> items;
public Font fontNo { get; set; }
public Font fontName { get; set; }
public Font fontDue { get; set; }
public delegate void itemclickhandler(itemdata item, MouseEventArgs e);
public event itemclickhandler itemclick;
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
var item = items.Where(t => t.rect.Contains(e.Location)).FirstOrDefault();
if (item != null)
{
if (itemclick != null)
itemclick(item, e);
}
}
protected override void OnMouseClick(MouseEventArgs e)
{
base.OnMouseClick(e);
}
Boolean brect = true;
protected override void OnPaint(PaintEventArgs pe)
{
if (items == null || items.Count != 10)
{
for (int i = 1; i <= 10; i++)
{
items.Add(new itemdata()
{
no = i,
body = string.Empty,
champion = "담당자",
duedate = "만료일자",
rect = Rectangle.Empty
});
}
}
base.OnPaint(pe);
//우측에 문
//좌측에 사용자
//중앙에 가로로 작업영역 10개
var rectL = new RectangleF(DisplayRectangle.Left + Padding.Left,
DisplayRectangle.Top + Padding.Top,
DisplayRectangle.Width * 0.1f - (Padding.Left + Padding.Right),
DisplayRectangle.Height - (Padding.Top + Padding.Bottom));
var rectR = new RectangleF(DisplayRectangle.Left + (DisplayRectangle.Width * 0.9f) + Padding.Left,
DisplayRectangle.Top + Padding.Top,
DisplayRectangle.Width * 0.1f - (Padding.Left + Padding.Right),
DisplayRectangle.Height - (Padding.Top + Padding.Bottom));
var lw = DisplayRectangle.Width * 0.1f;
var rect = new RectangleF(DisplayRectangle.Left + Padding.Left + lw + Padding.Left,
DisplayRectangle.Top + Padding.Top,
DisplayRectangle.Width - (Padding.Left + Padding.Right) * 2 - lw * 2,
rectR.Height);
pe.Graphics.DrawRectangle(Pens.White, rectL.Left, rectL.Top, rectL.Width, rectL.Height);
pe.Graphics.DrawRectangle(Pens.Gold, rectR.Left, rectR.Top, rectR.Width, rectR.Height);
//pe.Graphics.DrawRectangle(new Pen(Color.Pink,5), rect.Left, rect.Top, rect.Width, rect.Height);
pe.Graphics.DrawString("DESK", this.Font, Brushes.White, rectL, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center }); ;
pe.Graphics.DrawString("DOOR", this.Font, Brushes.White, rectR, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center }); ;
//var fNo = new Font("Consolas", 20, FontStyle.Bold);
//내부그리드 그리기 2*5 배열이나.. 1칸이 총 2x2 칸으로 구성되니 2배로 한다.
var cnt = 1;
var itemp = 10;
var colcount = 5;
var rowcount = 2;
var itemw = (rect.Width / colcount) - (itemp * (colcount - 1));
var itemh = (rect.Height / rowcount) - (itemp * (rowcount - 1));
for (int i = 0; i < colcount; i++)
{
for (int j = 0; j < rowcount; j++)
{
var r = new RectangleF(
rect.Left + (i * itemw) + ((i + 1) * itemp),
rect.Top + (j * itemh) + ((j + 1) * itemp),
itemw,
itemh);
var data = items[cnt - 1];
pe.Graphics.DrawRectangle(Pens.White, r.Left, r.Top, r.Width, r.Height);
var rno = new RectangleF(r.Left, r.Top, 50f, 50f);
var rnm = new RectangleF(rno.Right + 5, r.Top, r.Width - rno.Width - 5, rno.Height);
if (string.IsNullOrEmpty(data.reserve))
{
var rdu = new RectangleF(r.Left, r.Bottom - 50f, r.Width, 50f);
var rbd = new RectangleF(r.Left + 5, rno.Bottom + 5, r.Width - 5 * 2, r.Height - rno.Height - 10 - rdu.Height);
pe.Graphics.FillRectangle(Brushes.White, rno);
pe.Graphics.DrawRectangle(Pens.White, rno.Left, rno.Top, rno.Width, rno.Height);
pe.Graphics.DrawString(cnt.ToString(), fontNo, Brushes.Black, rno, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
pe.Graphics.DrawRectangle(Pens.White, rnm.Left, rnm.Top, rnm.Width, rnm.Height);
pe.Graphics.DrawString(data.champion, fontName, Brushes.White, rnm, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
//pe.Graphics.DrawRectangle(Pens.White, rbd.Left, rbd.Top, rbd.Width, rbd.Height);
data.rect = r;
pe.Graphics.FillRectangle(new SolidBrush(data.bodyColor), rdu);
if (string.IsNullOrEmpty(data.duedate))
pe.Graphics.DrawString("만료일없음", fontDue, Brushes.White, rdu, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
else
pe.Graphics.DrawString(data.duedate, fontDue, Brushes.White, rdu, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
pe.Graphics.DrawRectangle(Pens.White, rdu.Left, rdu.Top, rdu.Width, rdu.Height);
pe.Graphics.DrawString(data.body, this.Font, new SolidBrush(this.ForeColor), rbd, new StringFormat { Alignment = StringAlignment.Near, LineAlignment = StringAlignment.Near });
}
else
{
var rdu = new RectangleF(r.Left, r.Bottom - 105f, r.Width, 50f);
var rbd = new RectangleF(r.Left + 5, rno.Bottom + 5, r.Width - 5 * 2, r.Height - rno.Height - 10 - rdu.Height - 50);
var rrv = new RectangleF(r.Left + 5, rdu.Bottom + 5, rdu.Width - 10, 50f - 5);
pe.Graphics.FillRectangle(Brushes.White, rno);
pe.Graphics.DrawRectangle(Pens.White, rno.Left, rno.Top, rno.Width, rno.Height);
pe.Graphics.DrawString(cnt.ToString(), fontNo, Brushes.Black, rno, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
pe.Graphics.DrawRectangle(Pens.White, rnm.Left, rnm.Top, rnm.Width, rnm.Height);
pe.Graphics.DrawString(data.champion, fontName, Brushes.White, rnm, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
//pe.Graphics.DrawRectangle(Pens.White, rbd.Left, rbd.Top, rbd.Width, rbd.Height);
data.rect = r;
pe.Graphics.FillRectangle(new SolidBrush(data.bodyColor), rdu);
if (string.IsNullOrEmpty( data.duedate ))
pe.Graphics.DrawString("만료일없음", fontDue, Brushes.White, rdu, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
else
pe.Graphics.DrawString(data.duedate, fontDue, Brushes.White, rdu, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
pe.Graphics.DrawRectangle(Pens.White, rdu.Left, rdu.Top, rdu.Width, rdu.Height);
pe.Graphics.DrawString(data.body, this.Font, new SolidBrush(this.ForeColor), rbd, new StringFormat { Alignment = StringAlignment.Near, LineAlignment = StringAlignment.Near });
pe.Graphics.FillRectangle(Brushes.SkyBlue, rrv);
pe.Graphics.DrawString("다음예약 => " + data.reserve, fontNo, Brushes.Black, rrv, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
pe.Graphics.DrawRectangle(Pens.DimGray, rrv.Left, rrv.Top, rrv.Width, rrv.Height);
}
cnt += 1;
}
}
// fNo.Dispose();
if (brect) brect = false;
}
void arLabel_Resize(object sender, EventArgs e)
{
brect = true;
Invalidate();
}
}
}

View File

@@ -0,0 +1,150 @@

namespace FPJ0000.Project
{
partial class fLayoutEdit
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(19, 61);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(58, 21);
this.label1.TabIndex = 0;
this.label1.Text = "예약자";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(35, 15);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(42, 21);
this.label2.TabIndex = 1;
this.label2.Text = "번호";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(215, 15);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(106, 21);
this.label3.TabIndex = 1;
this.label3.Text = "프로젝트번호";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(83, 12);
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(100, 29);
this.textBox1.TabIndex = 2;
this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(327, 12);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(100, 29);
this.textBox2.TabIndex = 2;
this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(83, 58);
this.textBox3.Name = "textBox3";
this.textBox3.ReadOnly = true;
this.textBox3.Size = new System.Drawing.Size(238, 29);
this.textBox3.TabIndex = 3;
this.textBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// button1
//
this.button1.Location = new System.Drawing.Point(23, 104);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(404, 43);
this.button1.TabIndex = 4;
this.button1.Text = "확인";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(327, 58);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(97, 29);
this.button2.TabIndex = 5;
this.button2.Text = "설정";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// fLayoutEdit
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(444, 162);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "fLayoutEdit";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "프로젝트 레이아웃 데이터 편집";
this.Load += new System.EventHandler(this.fLayoutEdit_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
}
}

View File

@@ -0,0 +1,87 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace FPJ0000.Project
{
public partial class fLayoutEdit : Form
{
public fLayoutEdit(int no)
{
InitializeComponent();
this.textBox1.Text = no.ToString();
var db = new EEEntities();
var dr = db.EETGW_Project_Layout.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.no == no).FirstOrDefault();
if (dr != null)
{
textBox2.Text = dr.project.ToString();
textBox3.Text = dr.reserve;
if (string.IsNullOrEmpty(dr.reserve) == false)
textBox3.Tag = dr.reserve;
}
else
{
textBox2.Enabled = false;
textBox3.Enabled = false;
}
}
private void fLayoutEdit_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
//값을 저장해준다.
var db = new EEEntities();
var no = int.Parse(textBox1.Text);
var dr = db.EETGW_Project_Layout.Where(t => t.no == no).FirstOrDefault();
if (dr != null)
{
dr.reserve = this.textBox3.Text.Trim();
dr.project = int.Parse(textBox2.Text);
db.SaveChanges();
DialogResult = DialogResult.OK;
}
else
{
FCOMMON.Util.MsgE("해당 자료를 찾을 수 없습니다");
}
}
private void button2_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(textBox3.Text))
{
textBox3.Text = FCOMMON.info.Login.nameK;
}
else
{
if (textBox3.Text != FCOMMON.info.Login.nameK)
{
FCOMMON.Util.MsgE("타인이 예약된 상태입니다. 기 예약자가 해당 내역을 지운 후 사용하세요\n"+
"(현재는 베타라서 삭제 됩니다)");
textBox3.Text = string.Empty;
}
else
{
if(FCOMMON.Util.MsgQ("예약 정보를 삭제 할까요?")== DialogResult.Yes)
textBox3.Text = string.Empty;
}
}
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -30,42 +30,12 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectLayout));
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsMSSQL = new FPJ0000.dsPRJ();
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
this.cm = new System.Windows.Forms.ContextMenuStrip(this.components);
this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.autoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.partListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.iOMapToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.scheduleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.makeRepeatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ta = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter();
this.tam = new FPJ0000.dsPRJTableAdapters.TableAdapterManager();
this.bsHist = new System.Windows.Forms.BindingSource(this.components);
@@ -74,10 +44,8 @@
this.panel1 = new System.Windows.Forms.Panel();
this.btSearch = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.cmsview1 = new CMSControl.cmsview();
this.btEdit = new System.Windows.Forms.ToolStripButton();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
this.ctlLayout1 = new FPJ0000.Project.ctlLayout();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
this.cm.SuspendLayout();
@@ -85,40 +53,6 @@
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// bn
//
this.bn.AddNewItem = null;
this.bn.BindingSource = this.bs;
this.bn.CountItem = this.bindingNavigatorCountItem;
this.bn.DeleteItem = null;
this.bn.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem,
this.bindingNavigatorSeparator,
this.bindingNavigatorPositionItem,
this.bindingNavigatorCountItem,
this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2,
this.btEdit,
this.toolStripSeparator1,
this.toolStripButton1,
this.toolStripButton3,
this.toolStripButton4,
this.toolStripSeparator5});
this.bn.Location = new System.Drawing.Point(0, 657);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
this.bn.Size = new System.Drawing.Size(1339, 25);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
// bs
//
this.bs.DataMember = "Projects";
@@ -130,260 +64,38 @@
this.dsMSSQL.DataSetName = "dsMSSQL";
this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22);
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorPositionItem
//
this.bindingNavigatorPositionItem.AccessibleName = "위치";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(30, 23);
this.bindingNavigatorPositionItem.Text = "0";
this.bindingNavigatorPositionItem.ToolTipText = "현재 위치";
//
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
//
// toolStripButton1
//
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(75, 22);
this.toolStripButton1.Text = "부품목록";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// toolStripButton3
//
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(56, 22);
this.toolStripButton3.Text = "I/O맵";
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
//
// toolStripButton4
//
this.toolStripButton4.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton4.Image")));
this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton4.Name = "toolStripButton4";
this.toolStripButton4.Size = new System.Drawing.Size(75, 22);
this.toolStripButton4.Text = "공유폴더";
this.toolStripButton4.Click += new System.EventHandler(this.toolStripButton4_Click);
//
// toolStripSeparator5
//
this.toolStripSeparator5.Name = "toolStripSeparator5";
this.toolStripSeparator5.Size = new System.Drawing.Size(6, 25);
//
// cm
//
this.cm.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.cm.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.columnSizeToolStripMenuItem,
this.toolStripMenuItem2,
this.ToolStripMenuItem,
this.partListToolStripMenuItem,
this.iOMapToolStripMenuItem,
this.ToolStripMenuItem,
this.scheduleToolStripMenuItem,
this.toolStripMenuItem3,
this.ToolStripMenuItem,
this.makeRepeatToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem1,
this.toolStripMenuItem1,
this.ToolStripMenuItem});
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.cm.Name = "contextMenuStrip1";
this.cm.Size = new System.Drawing.Size(299, 418);
//
// columnSizeToolStripMenuItem
//
this.columnSizeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.autoToolStripMenuItem,
this.resetToolStripMenuItem,
this.saveToolStripMenuItem,
this.loadToolStripMenuItem});
this.columnSizeToolStripMenuItem.Name = "columnSizeToolStripMenuItem";
this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(298, 36);
this.columnSizeToolStripMenuItem.Text = "열 너비";
//
// autoToolStripMenuItem
//
this.autoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("autoToolStripMenuItem.Image")));
this.autoToolStripMenuItem.Name = "autoToolStripMenuItem";
this.autoToolStripMenuItem.Size = new System.Drawing.Size(149, 36);
this.autoToolStripMenuItem.Text = "Auto";
this.autoToolStripMenuItem.Click += new System.EventHandler(this.autoToolStripMenuItem_Click);
//
// resetToolStripMenuItem
//
this.resetToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("resetToolStripMenuItem.Image")));
this.resetToolStripMenuItem.Name = "resetToolStripMenuItem";
this.resetToolStripMenuItem.Size = new System.Drawing.Size(149, 36);
this.resetToolStripMenuItem.Text = "Reset";
this.resetToolStripMenuItem.Click += new System.EventHandler(this.resetToolStripMenuItem_Click);
//
// saveToolStripMenuItem
//
this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image")));
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
this.saveToolStripMenuItem.Size = new System.Drawing.Size(149, 36);
this.saveToolStripMenuItem.Text = "Save";
this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
//
// loadToolStripMenuItem
//
this.loadToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("loadToolStripMenuItem.Image")));
this.loadToolStripMenuItem.Name = "loadToolStripMenuItem";
this.loadToolStripMenuItem.Size = new System.Drawing.Size(149, 36);
this.loadToolStripMenuItem.Text = "Load";
this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click);
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(295, 6);
this.cm.Size = new System.Drawing.Size(243, 170);
//
// 편집ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "편집ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(298, 36);
this.ToolStripMenuItem.Text = "편집";
this.ToolStripMenuItem.Size = new System.Drawing.Size(242, 36);
this.ToolStripMenuItem.Text = "프로젝트 선택";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// partListToolStripMenuItem
//
this.partListToolStripMenuItem.Name = "partListToolStripMenuItem";
this.partListToolStripMenuItem.Size = new System.Drawing.Size(298, 36);
this.partListToolStripMenuItem.Text = "파트리스트";
this.partListToolStripMenuItem.Click += new System.EventHandler(this.partListToolStripMenuItem_Click);
//
// iOMapToolStripMenuItem
//
this.iOMapToolStripMenuItem.Name = "iOMapToolStripMenuItem";
this.iOMapToolStripMenuItem.Size = new System.Drawing.Size(298, 36);
this.iOMapToolStripMenuItem.Text = "I/O 맵";
this.iOMapToolStripMenuItem.Click += new System.EventHandler(this.iOMapToolStripMenuItem_Click);
//
// 공유폴더ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "공유폴더ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(298, 36);
this.ToolStripMenuItem.Text = "공유 폴더";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// scheduleToolStripMenuItem
//
this.scheduleToolStripMenuItem.ForeColor = System.Drawing.Color.Black;
this.scheduleToolStripMenuItem.Name = "scheduleToolStripMenuItem";
this.scheduleToolStripMenuItem.Size = new System.Drawing.Size(298, 36);
this.scheduleToolStripMenuItem.Text = "스케쥴 관리";
this.scheduleToolStripMenuItem.Click += new System.EventHandler(this.scheduleToolStripMenuItem_Click);
//
// toolStripMenuItem3
//
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
this.toolStripMenuItem3.Size = new System.Drawing.Size(295, 6);
//
// 메일발송주소관리ToolStripMenuItem
//
this.ToolStripMenuItem.ForeColor = System.Drawing.Color.Gray;
this.ToolStripMenuItem.Name = "메일발송주소관리ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(298, 36);
this.ToolStripMenuItem.Text = "메일발송 주소 관리";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// makeRepeatToolStripMenuItem
//
this.makeRepeatToolStripMenuItem.Name = "makeRepeatToolStripMenuItem";
this.makeRepeatToolStripMenuItem.Size = new System.Drawing.Size(298, 36);
this.makeRepeatToolStripMenuItem.Text = "복사";
this.makeRepeatToolStripMenuItem.Click += new System.EventHandler(this.makeRepeatToolStripMenuItem_Click);
//
// 삭제ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "삭제ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(298, 36);
this.ToolStripMenuItem.Text = "삭제";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 편집ToolStripMenuItem1
//
this.ToolStripMenuItem1.Name = "편집ToolStripMenuItem1";
this.ToolStripMenuItem1.Size = new System.Drawing.Size(298, 36);
this.ToolStripMenuItem1.Text = "편집";
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(295, 6);
//
// 엑셀파일로저장ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "엑셀파일로저장ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(298, 36);
this.ToolStripMenuItem.Text = "목록 내보내기";
this.ToolStripMenuItem.Size = new System.Drawing.Size(242, 36);
this.ToolStripMenuItem.Text = "프로젝트 보기";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 예약변경ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "예약변경ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(242, 36);
this.ToolStripMenuItem.Text = "예약 변경";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// ta
//
this.ta.ClearBeforeFill = true;
@@ -459,53 +171,47 @@
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click_1);
//
// cmsview1
// ctlLayout1
//
this.cmsview1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(90)))), ((int)(((byte)(90)))));
this.cmsview1.ContextMenuStrip = this.cm;
this.cmsview1.Dock = System.Windows.Forms.DockStyle.Fill;
this.cmsview1.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.cmsview1.ForeColor = System.Drawing.Color.Black;
this.cmsview1.GridCount = new System.Drawing.Point(5, 2);
this.cmsview1.isDebug = false;
this.cmsview1.ItemMargin = ((ushort)(3));
this.cmsview1.Location = new System.Drawing.Point(0, 55);
this.cmsview1.Name = "cmsview1";
this.cmsview1.Padding = new System.Windows.Forms.Padding(10);
this.cmsview1.Page = ((ushort)(1));
this.cmsview1.Size = new System.Drawing.Size(1339, 602);
this.cmsview1.TabIndex = 10;
this.cmsview1.Text = "cmsview1";
this.ctlLayout1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(90)))), ((int)(((byte)(90)))));
this.ctlLayout1.ContextMenuStrip = this.cm;
this.ctlLayout1.Dock = System.Windows.Forms.DockStyle.Fill;
this.ctlLayout1.Font = new System.Drawing.Font("맑은 고딕", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.ctlLayout1.fontDue = new System.Drawing.Font("맑은 고딕", 15F, System.Drawing.FontStyle.Bold);
this.ctlLayout1.fontName = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
this.ctlLayout1.fontNo = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold);
this.ctlLayout1.ForeColor = System.Drawing.Color.Yellow;
this.ctlLayout1.Location = new System.Drawing.Point(0, 55);
this.ctlLayout1.Name = "ctlLayout1";
this.ctlLayout1.Padding = new System.Windows.Forms.Padding(10);
this.ctlLayout1.Size = new System.Drawing.Size(1339, 906);
this.ctlLayout1.TabIndex = 11;
this.ctlLayout1.Text = "ctlLayout1";
//
// btEdit
// 프로젝트해제ToolStripMenuItem
//
this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image")));
this.btEdit.Name = "btEdit";
this.btEdit.Size = new System.Drawing.Size(65, 22);
this.btEdit.Text = "편집(&E)";
this.btEdit.Click += new System.EventHandler(this.btEdit_Click);
this.ToolStripMenuItem.Name = "프로젝트해제ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(242, 36);
this.ToolStripMenuItem.Text = "프로젝트 해제";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// fProjectLayout
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1339, 682);
this.Controls.Add(this.cmsview1);
this.ClientSize = new System.Drawing.Size(1339, 961);
this.Controls.Add(this.ctlLayout1);
this.Controls.Add(this.panel1);
this.Controls.Add(this.bn);
this.Name = "fProjectLayout";
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Project Layout";
this.Load += new System.EventHandler(this.@__Load);
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false);
this.bn.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
this.cm.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.bsHist)).EndInit();
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
@@ -515,47 +221,17 @@
private System.Windows.Forms.BindingSource bs;
private dsPRJTableAdapters.ProjectsTableAdapter ta;
private dsPRJTableAdapters.TableAdapterManager tam;
private System.Windows.Forms.BindingNavigator bn;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ContextMenuStrip cm;
private System.Windows.Forms.ToolStripMenuItem partListToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripMenuItem columnSizeToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem autoToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem resetToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem loadToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
private System.Windows.Forms.ToolStripMenuItem scheduleToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem makeRepeatToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem iOMapToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
private System.Windows.Forms.BindingSource bsHist;
private dsPRJTableAdapters.ProjectsHistoryTableAdapter taHist;
private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.ToolStripButton toolStripButton3;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripButton4;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button btSearch;
private CMSControl.cmsview cmsview1;
private System.Windows.Forms.ToolStripButton btEdit;
private Project.ctlLayout ctlLayout1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
}
}

View File

@@ -6,6 +6,7 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using static FPJ0000.Project.ctlLayout;
using util = FCOMMON.Util;
namespace FPJ0000
@@ -19,62 +20,106 @@ namespace FPJ0000
fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.dsMSSQL.Projects.TableNewRow += Projects_TableNewRow;
this.FormClosed += __Closed;
this.ctlLayout1.itemclick += CtlLayout1_itemclick;
}
int project = -1;
int no = 0;
private void CtlLayout1_itemclick(itemdata item, MouseEventArgs e)
{
project = item.project;
no = item.no;
if (project < 1) return;
Console.WriteLine("project:" + project.ToString());
}
void __Closed(object sender, FormClosedEventArgs e)
{
this.ctlLayout1.itemclick -= CtlLayout1_itemclick;
}
private void __Load(object sender, EventArgs e)
{
this.Show();
Application.DoEvents();
refreshData();
}
void refreshData()
{
if (ctlLayout1.items == null || ctlLayout1.items.Count != 10)
{
for (int i = 1; i <= 10; i++)
{
ctlLayout1.items.Add(new itemdata()
{
no = i,
body = "",
champion = "",
duedate = "미사용"
});
}
}
foreach (var item in ctlLayout1.items)
{
item.body = string.Empty;
item.duedate = "미사용";
item.champion = "--";
item.bodyColor = ctlLayout1.BackColor;
}
ctlLayout1.Refresh();
var db = new EEEntities();
var list = db.EETGW_Project_Layout.Where(t => t.gcode == FCOMMON.info.Login.gcode).OrderBy(t => t.no).ToList();
var list = db.EETGW_Project_Layout.AsNoTracking().Where(t => t.gcode == FCOMMON.info.Login.gcode).OrderBy(t => t.no).ToList();
var maxrow = list.Max(t => t.row);
var maxcol = list.Max(t => t.col);
if (list.Any())
{
this.cmsview1.GridCount = new Point(maxcol + 1, maxrow + 1);
foreach (var item in list)
//this.cmsview1.GridCount = new Point(maxcol + 1, maxrow + 1);
foreach (var dr in list)
{
var newitem = (new CMSControl.Slot()
var data = ctlLayout1.items[dr.no - 1];
var drprj = db.vEETGW_Project_LayoutList.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.idx == dr.project).FirstOrDefault();
if (drprj == null)
{
BackColor = Color.Lime,
BorderColor = Color.Gray,
BorderSize = 2f,
Enable = true,
ForeColor = Color.Black,
Name = item.no.ToString(),
Index = (byte)item.no,
No = item.no.ToString(),
Selected = false
});
if (item.project != null)
{
var project = (int)item.project;
if (project > 0)
{
var drp = db.Projects.Where(t => t.idx == item.project && t.gcode == item.gcode).FirstOrDefault();
if (drp != null)
{
newitem.Name = drp.name;
}
}
data.bodyColor = Color.DarkMagenta;
data.body = string.Empty;
data.champion = string.Empty;
data.duedate = "미 할당";
data.project = -1;
data.reserve = string.Empty;
}
cmsview1.Slots.Add(newitem);
else
{
data.reserve = dr.reserve;
data.project = drprj.idx;
data.body = "[" + drprj.status + "] " + drprj.name;
data.champion = drprj.userManager;
data.duedate = drprj.ddate;
var isdate = DateTime.TryParse(drprj.ddate, out DateTime dt);
if (isdate)
{
if (DateTime.Now >= dt) data.bodyColor = Color.Tomato;
else data.bodyColor = ctlLayout1.BackColor;
}
else
{
data.bodyColor = ctlLayout1.BackColor;
}
}
}
}
this.cmsview1.Refresh();
ctlLayout1.Refresh();
}
@@ -242,13 +287,24 @@ namespace FPJ0000
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
SaveFileDialog sd = new SaveFileDialog();
sd.Filter = ("excel|*.xls");
var dlg = sd.ShowDialog();
if (dlg == System.Windows.Forms.DialogResult.OK)
{
if (this.project < 1) return;
FCOMMON.Util.MsgI("파일생성 완료\n\n" + sd.FileName);
var dt = ta.GetbyIDX(this.project);
if (dt == null || dt.Rows.Count < 1)
{
util.MsgE("프로젝트가 존재하지 않습니다");
return;
}
var dr = dt.Rows[0] as dsPRJ.ProjectsRow;
var f = new fProjectData(dr);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
if (util.MsgQ("저장 할까요?") == DialogResult.Yes)
{
dr.EndEdit();
ta.Update(dr);
refreshData();
}
}
}
@@ -320,20 +376,28 @@ namespace FPJ0000
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsPRJ.ProjectsRow;
var f = new fProjectData(dr);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.project));
if (curLevel < 5)
{
funcSave(false); //자동저장
}
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
funcEdit();
var f = new FCM0000.fLovProject(string.Empty, "진행");
if (f.ShowDialog() == DialogResult.OK)
{
var db = new EEEntities();
var dr = db.EETGW_Project_Layout.Where(t => t.no == this.no && t.project == this.project).FirstOrDefault();
if (dr == null)
{
util.MsgE("기존 레이아웃 자료를 확인 할 수 없습니다");
}
else
{
dr.project = f.Index;
db.SaveChanges();
util.MsgI("프로젝트를 변경했습니다");
refreshData();
}
}
}
private void tbRequest_KeyDown(object sender, KeyEventArgs e)
@@ -497,5 +561,36 @@ namespace FPJ0000
{
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.no < 1) return;
var f = new Project.fLayoutEdit(this.no);
if (f.ShowDialog() == DialogResult.OK)
refreshData();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
if(this.project < 1)
{
FCOMMON.Util.MsgE("선택된 프로젝트가 없습니다");
return;
}
var dlg = FCOMMON.Util.MsgQ("슬롯 " + this.no.ToString() + "의 프로젝트를 해제 할까요?\n" +
"해당 슬롯은 '미사용'이 됩니다");
if(dlg == DialogResult.Yes)
{
var db = new EEEntities();
var dr= db.EETGW_Project_Layout.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.no == this.no).FirstOrDefault();
if(dr != null)
{
dr.project = -1;
db.SaveChanges();
refreshData();
}
}
}
}
}

View File

@@ -117,160 +117,15 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>321, 17</value>
</metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>122, 17</value>
</metadata>
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu
lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
oAc0QjgAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
</value>
</data>
<data name="btEdit.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
R0lGODlhEAAQAIQAAGB3lYivyMDf/XiZt+Ts9ajT/Mbh/UlVa/P2+bLY/FRlfu3x9ZzN++Xy/rTR4ENL
XN7v/tTk8Jm/1enx96jL3uDo7ykxQz5FVb2JAP+8Bv/RV6HQ/FSr9qfR+jhllf///yH/C05FVFNDQVBF
Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIugA/CBxIsKDACA4cUJAgIUCAARA9eJAg0EEEAhMyTiDA
0UMHDh4qTjBAkqSABh5BKhBIAUFJASdTekCw8oMElwZgovzoAQJNgTdzxuQJocDPDwEQ6MRAtIDRAwKT
nsSgIUPPAh02EID6YcCCBlQzYCiaVesDgV4jVB2LdcMGBhXOdl2QQIFdBQAGMNhb4QJaBAkSYC0wAIBh
AAv8fgAQAcFGjgQqSF7gwAJavHcPHHjw4MIFCzUNihYYEAA7
</value>
</data>
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAL/SURBVDhPY6AYFB9PNQfh/ENAvC/RPGtnjHnqlhjzxA0R
5jGrg80jFvmZB8/1Mveb4Wru1e9gDtWGAEXH013r98dzxCPj+TBsD8b2IFxvz+HUYe0K1YYAeQeSXQuP
hXAWH0tvAuHCQylNufuSmjJ3xTWlbIlpSlgX0RSzIqgpbJFfk890twV+093qPCY61EG1MzBk70lwTduU
xlV4LG1R3oFU08wdCVap22LtUzZGOMWtDnaLXOrvFbzQ18d/pluAU6dNlUevo5dTu/U8qHYGhvStMa4x
O2O4cw8kLc7YHm1bdCz1Rt7R9JsFB5Nv5eyOv52xM/pOyoawu7Hrwu5GLgx4GrzI507ALLfXPlPdTrtP
cDzNkLA2wjVpgx9v1u74xalbolyA3viftjW6KnljRFf82rBpsatClkUtD9wUutB3T8AM14t+U12POXc7
3Hfrs98IDJP/DDHLAl2jF3vwpW6NWpywJswr/2DK/9TNEXMS1oevjFkZsi1qWeCBkIXexwNne5zxmuh8
273f7oJju+Ujx3arzdYNpv8ZQub5uvrPtxdIWBe6JHxJQBAwTP4nbQjfEbcy5BDQ/6dCFvhc8Jvpcdl7
kuM113bbB/btllct600fWdYabTStMPjP4DvdzdVzgpNr+GLfHb5TXGvTtsX8j1oRdC1sod8tv5nud32n
uz5w7Qdq7LJ5aNds/tC6xvS6aYXeQ5NyvfX6hVr/oUHJwBA032ue7wz3oMT14f/Dl/qeD5kHtHWG61X3
iY7XnLtsb9i1mN+wrDW+Zlyme1U3X/WBXp7Gaq0sVYQBQJvmAeN3XvTywP++sz0fu01yeeLYZw/0q+Uj
m0azh6blug+MSnUfaGdr3tfMULqnmaG8TDVFEWEADITM9/nvN8N9s9ckh02uXTYbgTavt6o3Xmdarr/a
oEBrhXau2lL1NJVFKsnyCxXjZTENAKa0/54THf87d9n8t2u2+A909n+Tcv3/IP9qZ6v9V09T/q+cpPBf
IU72v1y0FKYBdAYMDACTvk5keWFIqgAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIxSURBVDhPpZL/SxNxHMbvPwoClVIsFrTKUtcmLY0WGChF
SKESs3bThpqMigpL15TLXClrrcX6Yrmlk6lpS1vSV/sy+7Ld2tzW2sronu4+O3S3/Kle8HBw7+d5ePPh
Tf03RsdHtN8IwGB9D/3API73v4GWefVIHEvoG43qekcWF3ofRmB2hdH9IAwqmf6FXNXTtzkxI4FxR7/n
eqmT3hYYPDroR7Q45mokP+tMzyBmJPS4v5J5/9wlMP6LMM+cB4UcBMOBC7OrFpiGw2SeDWXxhJAtwbD/
nE9SUGVRqCqYHSjrkkPdrZD4Ket4UOzKEI6noTk9tVxQZSlVKekSrnm4CW2jzSg/s40EBQbGgpkC+2QI
9okgnNNBvP2SwO6OCVKg7itVKeitnPZuPXaZylF8ogDy1k0Y9IZgFTTO/r3B609xVLR6oWK2V5bRcq7R
WQcZXcgV0XlbjDcXEE8twTbJEq+d/5ICsgW/gY1XjXUflD0lqL66B4cdB7GRXsetp9duFjZqs31ALLkE
xxSLW9MZUUNPWCRSKy+ruVwJvVuLQ/YaFNMFXH5TJizQMvgOi99+4o4vs8H9Gf6QnI9ZZEvdpYSsvRBF
+jzkH12zHBbQXZsnBUN8UAiTguv8Q2TzIhCDxuhd9Q60V14iyhe4noaJ1+3nC4RArjZ0uH+LGQkNzHNE
Ej/AxtL4HEkhwCZB7TR4kCtZwz27mJFwxDw3VtvpT9Z2zqL6rA97T63cyz9CUX8AHwQsuvhZgxsAAAAA
SUVORK5CYII=
</value>
</data>
<data name="toolStripButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJ1SURBVDhPpZFJTBNhHMXn4J2bdw9eRCSKVG8cTExMPHgy
JB5MNF7ARIMJBw9UYoqACQaoS5BgFGQXlCKhNaSpgbaAUKS1ltLWaSmVqcCUmc7S6XSeX8soamLi8jIv
s+T7vf8y1H/LP162FB07q8R+8erEyXDoxZH94cGyop/8pqzIbq/Yp+MU5e42yJqWA6CRK+/d56yURNxe
lVlzXZC/ObFwTYq6aqKBV8fO6zhF+UbLU5oqQY63QIi0QqCfQIwOQ8uyJCsNTeWJd3bfs9tgGCYTGDH4
dJyigr1HuZyyQ2Az0qF2cB/qsTVXheT8VbBeE9jlW2CXbmLbU0tcQzpjEBw5zus4CRgqV7LiBlifGduL
jWAcNyAys6Qqp1fP31PfO8iP5xkqlXQ838EJpTB/TiYWAVUogKoYgJy4D59vABanG11TNPqm12HzxJDf
m46TALMho6kiVM6NLGuFsjmMzEYnpLW78C53Y3yBwepnAZ82ZcyGOUwufcGYpUnVcfIXOgxyTuGgbFmQ
YXoKVaWYCWKkFoPOBPxxHnO0CGdEwAyxNyGj/y0NHacoz71SSVNYAj+FvN4KKVpP4BoIwcuFtkNJGc5w
GtOhNKYCPBZiMnoc8b2AlaaShJjypfz2vlx6tQt88AH4QAv4jw3oJzP71wU4grtw3u/WZHRMrOwFBBqK
rwcaD/f67hxKehpLpB/9erRZnQ1xWCSQi5YwT6pb3vMwmsyate7URT3i92qz0gc6bLRxiOxiYCaBxzZH
zmh6pHknO+Fur+SeVxdX6kf/XC/rzlxxPbzERqxtmLhdIeif/07Pqg9WThpPi7bmc3u7+DdR1FcTkSP2
j4Z0bAAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="cm.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>387, 17</value>
</metadata>
<data name="autoToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
R0lGODlhEAAQAIQfAJXG2JXa+ZLO5ChrlkCy4TZ1kiVvpCN0trvo9SN5xTd4lrfh7iR9zo3S+EGz7JDJ
4TaCromrvC9ymyV+0Dd3mTl1koe72YvN7LTj+9ne6N3g6v7+/0Cw2Stoh////////yH/C05FVFNDQVBF
Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAInwA/CBzooaAHgQUHKvRQoUABCgUlHFT4IYMCBAsQIIBg
wcBEgh0WCBDAgcAFDAc+fvDQIUKHDgMeEHDQIIFKlgoMGgjQoAGDmwUOehhg4EACBhM+GlzKVOkEBgkO
GBggNOhCBhgCBPBYUEGHmwkCOCDwYMCAll8XHghwgQCHkQDSLjRgAcKDBwAAKNCwgaIHiR4oOKygkuDE
pRQTK6YYEAA7
</value>
</data>
<data name="resetToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
R0lGODlhEAAQAIQfALnik2aXQv7+/dPut73llbfala3LmW6gSWqdQ2eYRGqaSLfck568iYrUQN7yzF6R
PLTXlYjUP8XwmYfQQLbYl4jRQGiaQsPumNbyu7nglNPzsLXYlf7+/lCHK////////yH/C05FVFNDQVBF
Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIlgA/CBzooaAHgQUHEvSgIEAABQUfHFTIwQECDAMwYDhg
oENCgRw8dBgAAECFBgsweJxYsAODDjApTIhAwCMHkCItGOxwgUCGlQQTeAgJsyhQg0iTGvzQ0qhND0IX
dtBwQcJKDxZsIhQpIcIECkVffmwpYUGDCiUheBQg1cCBAgU2QFDg4KZCDxIZOoQ48S7LpQoDCx4cEAA7
</value>
</data>
<data name="saveToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
R0lGODlhEAAQAIQAAJXD9Iasxm6MqnSn2lZtjVaRyEpXbYu767TX/2KZztvr/4Gy5KrT/3ut32+gzlFh
e+r0/0RNX9/u/9Ln+8Xg//n8/4e36CkxQz9GVkSCvKjL35/N/Je91K7T5bDS4////yH/C05FVFNDQVBF
Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIuQA/CBxIsKDACRwScggQwIGAhwIICBDYQcEEgwg+bNjw
QKCHCQgkQBgpQcKBCg0AEBCoAaRIkhIsVBigUiAHCgwkKNjJU8GAAx0/3NwIAMABCwsaDHCwIGgAChuK
HjiQdMDSAQYEPpWKtKqDBA6yfgiAwGhXpUsTJIgg0AGCo0nRfi1QgO0HAQyQNpCrtkAGDAIFbKi69GsC
un8FEohqdEFavxkyXAhMoPKDBwYMRIiAAcOFoAZDCwwIADs=
</value>
</data>
<data name="loadToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
R0lGODlhEAAQAIQfAJfL/OTs9HWVsW6aUqnT+6bnZldwkYiux7TZ/O3z+UlVa/P2+ZfTW36wWJDLV4m7
69nn78bi/qjL3qDP+VJhe4rAVa7S40NLXJ3bYJrA1ikxQz5FVdDU22OPRf///////yH/C05FVFNDQVBF
Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIwQA9CBxIcOCHgx4gWLAgIUOGAwcESBTgAaEFCAEGaBwQ
IGOABwYqerCQsYBJBho7JHgAUqCEDjAxYGBQgYHKBAsoCMzQIUIEmA6CdkCAIOfOBT5/MnBQYSgBozCj
SoVJ4KkCDx1MFhhKFEFVAhMCXM1aAANMoh2qTgh7AWvZmQ6igp0AIEDbDg0aLA06YC4AABA2eBjgYcHG
vmv/Akgg2IMBDgsSdJwcAEICDhoECjDAmQIFBQouXNiwQYPOgqgLBgQAOw==
</value>
</data>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>186, 17</value>
</metadata>
@@ -286,6 +141,7 @@
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>731, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="btSearch.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABGdBTUEAALGPC/xhBQAABEpJREFUSEut

View File

@@ -0,0 +1,29 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 이 코드는 템플릿에서 생성되었습니다.
//
// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다.
// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다.
// </auto-generated>
//------------------------------------------------------------------------------
namespace FPJ0000
{
using System;
using System.Collections.Generic;
public partial class vEETGW_Project_LayoutList
{
public int idx { get; set; }
public string gcode { get; set; }
public string pdate { get; set; }
public string edate { get; set; }
public string ddate { get; set; }
public string sdate { get; set; }
public string name { get; set; }
public string userManager { get; set; }
public string memo { get; set; }
public Nullable<bool> isdel { get; set; }
public string status { get; set; }
}
}