개정판 c0977e97
issue #000 group & dept color 임시 제거. IFinalPDF 를 Final Service 의 프로젝트를 참조하도록 경로 수정.
Change-Id: I03efb63cd9a922a4bda147a13d309b246f865ac3
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
2128 | 2128 |
#endregion |
2129 | 2129 |
#region Grouping |
2130 | 2130 |
case "Group": |
2131 |
var GrouptoggleList = this.Parent.ChildrenOfType<RadRibbonToggleButton>(); |
|
2132 |
foreach (var togle in GrouptoggleList) |
|
2133 |
{ |
|
2134 |
togle.IsChecked = false; |
|
2135 |
} |
|
2131 |
//var GrouptoggleList = this.Parent.ChildrenOfType<RadRibbonToggleButton>();
|
|
2132 |
//foreach (var togle in GrouptoggleList)
|
|
2133 |
//{
|
|
2134 |
// togle.IsChecked = false;
|
|
2135 |
//}
|
|
2136 | 2136 |
|
2137 |
if (this.ParentOfType<MainWindow>().dzMainMenu.currentControl != null) |
|
2138 |
{ |
|
2139 |
ViewerDataModel.Instance.MarkupControls_USER.Remove(this.ParentOfType<MainWindow>().dzMainMenu.currentControl); |
|
2140 |
this.ParentOfType<MainWindow>().dzMainMenu.currentControl = null; |
|
2141 |
} |
|
2142 |
this.ParentOfType<MainWindow>().dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.None; |
|
2143 |
instanceMain.dzMainMenu.controlType = MarkupToPDF.Controls.Common.ControlType.None; |
|
2144 |
instanceMain.dzMainMenu.isLeftMouseButtonDownOnWindow = false; |
|
2145 |
if (ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children.Count < 1) //선택된 것이 없으면 |
|
2146 |
{ |
|
2147 |
this.ParentOfType<MainWindow>().dzMainMenu.DialogMessage_Alert("Please Select Controls", "Alert"); |
|
2148 |
} |
|
2149 |
else//if (this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children.Count > 0) |
|
2150 |
{ |
|
2151 |
// string MarkupData = ""; |
|
2152 |
foreach (var item in this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children) |
|
2153 |
{ |
|
2154 |
if (item.GetType().Name == "AdornerFinal" && (item as AdornerFinal).MemberSet.Count >= 2) // 얘가 2개 이상이여야 그룹가능 버튼도 막을거긴하지만 일단.. |
|
2155 |
{ |
|
2156 |
//MARKUP_DATA_GROUP INSERT |
|
2157 |
MARKUP_DATA_GROUP mARKUP_DATA_GROUP = new MARKUP_DATA_GROUP |
|
2158 |
{ |
|
2159 |
SYMBOL_ID = null,//InnerItem.Symbol_ID |
|
2160 |
STATE = 0, |
|
2161 |
}; |
|
2162 |
long group_id = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddMarkupDataGroup(mARKUP_DATA_GROUP, App.ViewInfo.ProjectNO); |
|
2163 |
Logger.sendReqLog("AddMarkupDataGroup: ", "", 1); |
|
2164 |
if (group_id > 0) |
|
2165 |
{ |
|
2166 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>()) |
|
2167 |
{ |
|
2168 |
if (!ViewerDataModel.Instance.MarkupControls.Contains(InnerItem.DrawingData)) |
|
2169 |
{ |
|
2170 |
//MARKUP_DATA UPDATE |
|
2171 |
//Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.UpdateMarkupData((InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo).CommentID, group_id, App.ViewInfo.ProjectNO); |
|
2172 |
//Logger.sendReqLog("UpdateMarkupData: ", "", 1); |
|
2173 |
ViewerDataModel.Instance.MyMarkupList.Where(d => d.ID == (InnerItem.DrawingData as CommentUserInfo).CommentID).FirstOrDefault().Group_ID = group_id; |
|
2174 |
ViewerDataModel.Instance.MyMarkupList.Where(d => d.ID == (InnerItem.DrawingData as CommentUserInfo).CommentID).FirstOrDefault().IsUpdate = true; |
|
2175 |
} |
|
2176 |
} |
|
2177 |
} |
|
2178 |
} |
|
2179 |
} |
|
2180 |
} |
|
2137 |
//if (this.ParentOfType<MainWindow>().dzMainMenu.currentControl != null)
|
|
2138 |
//{
|
|
2139 |
// ViewerDataModel.Instance.MarkupControls_USER.Remove(this.ParentOfType<MainWindow>().dzMainMenu.currentControl);
|
|
2140 |
// this.ParentOfType<MainWindow>().dzMainMenu.currentControl = null;
|
|
2141 |
//}
|
|
2142 |
//this.ParentOfType<MainWindow>().dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.None;
|
|
2143 |
//instanceMain.dzMainMenu.controlType = MarkupToPDF.Controls.Common.ControlType.None;
|
|
2144 |
//instanceMain.dzMainMenu.isLeftMouseButtonDownOnWindow = false;
|
|
2145 |
//if (ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children.Count < 1) //선택된 것이 없으면
|
|
2146 |
//{
|
|
2147 |
// this.ParentOfType<MainWindow>().dzMainMenu.DialogMessage_Alert("Please Select Controls", "Alert");
|
|
2148 |
//}
|
|
2149 |
//else//if (this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children.Count > 0)
|
|
2150 |
//{
|
|
2151 |
// // string MarkupData = "";
|
|
2152 |
// foreach (var item in this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children)
|
|
2153 |
// {
|
|
2154 |
// if (item.GetType().Name == "AdornerFinal" && (item as AdornerFinal).MemberSet.Count >= 2) // 얘가 2개 이상이여야 그룹가능 버튼도 막을거긴하지만 일단..
|
|
2155 |
// {
|
|
2156 |
// //MARKUP_DATA_GROUP INSERT
|
|
2157 |
// MARKUP_DATA_GROUP mARKUP_DATA_GROUP = new MARKUP_DATA_GROUP
|
|
2158 |
// {
|
|
2159 |
// SYMBOL_ID = null,//InnerItem.Symbol_ID
|
|
2160 |
// STATE = 0,
|
|
2161 |
// };
|
|
2162 |
// long group_id = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddMarkupDataGroup(mARKUP_DATA_GROUP, App.ViewInfo.ProjectNO);
|
|
2163 |
// Logger.sendReqLog("AddMarkupDataGroup: ", "", 1);
|
|
2164 |
// if (group_id > 0)
|
|
2165 |
// {
|
|
2166 |
// foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>())
|
|
2167 |
// {
|
|
2168 |
// if (!ViewerDataModel.Instance.MarkupControls.Contains(InnerItem.DrawingData))
|
|
2169 |
// {
|
|
2170 |
// //MARKUP_DATA UPDATE
|
|
2171 |
// //Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.UpdateMarkupData((InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo).CommentID, group_id, App.ViewInfo.ProjectNO);
|
|
2172 |
// //Logger.sendReqLog("UpdateMarkupData: ", "", 1);
|
|
2173 |
// ViewerDataModel.Instance.MyMarkupList.Where(d => d.ID == (InnerItem.DrawingData as CommentUserInfo).CommentID).FirstOrDefault().Group_ID = group_id;
|
|
2174 |
// ViewerDataModel.Instance.MyMarkupList.Where(d => d.ID == (InnerItem.DrawingData as CommentUserInfo).CommentID).FirstOrDefault().IsUpdate = true;
|
|
2175 |
// }
|
|
2176 |
// }
|
|
2177 |
// }
|
|
2178 |
// }
|
|
2179 |
// }
|
|
2180 |
//}
|
|
2181 | 2181 |
break; |
2182 | 2182 |
case "UnGroup": |
2183 |
var UnGrouptoggleList = this.Parent.ChildrenOfType<RadRibbonToggleButton>(); |
|
2184 |
foreach (var togle in UnGrouptoggleList) |
|
2185 |
{ |
|
2186 |
togle.IsChecked = false; |
|
2187 |
} |
|
2188 |
if (this.ParentOfType<MainWindow>().dzMainMenu.currentControl != null) |
|
2189 |
{ |
|
2190 |
ViewerDataModel.Instance.MarkupControls_USER.Remove(this.ParentOfType<MainWindow>().dzMainMenu.currentControl); |
|
2191 |
this.ParentOfType<MainWindow>().dzMainMenu.currentControl = null; |
|
2192 |
} |
|
2193 |
this.ParentOfType<MainWindow>().dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.None; |
|
2194 |
instanceMain.dzMainMenu.controlType = MarkupToPDF.Controls.Common.ControlType.None; |
|
2195 |
instanceMain.dzMainMenu.isLeftMouseButtonDownOnWindow = false; |
|
2196 |
|
|
2197 |
if (ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children.Count < 1) //선택된 것이 없으면 |
|
2198 |
{ |
|
2199 |
this.ParentOfType<MainWindow>().dzMainMenu.DialogMessage_Alert("Please Select Controls", "Alert"); |
|
2200 |
} |
|
2201 |
else//if (this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children.Count > 0) |
|
2202 |
{ |
|
2203 |
// string MarkupData = ""; |
|
2204 |
foreach (var item in this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children) |
|
2205 |
{ |
|
2206 |
if (item.GetType().Name == "AdornerFinal" && (item as AdornerFinal).MemberSet.Count >= 1) // 1개 이상 |
|
2207 |
{ |
|
2208 |
//MARKUP_DATA UPDATE |
|
2209 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>()) |
|
2210 |
{ |
|
2211 |
if (!ViewerDataModel.Instance.MarkupControls.Contains(InnerItem.DrawingData)) |
|
2212 |
{ |
|
2213 |
long group_id = ViewerDataModel.Instance.MyMarkupList.Where(d => d.ID == (InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo).CommentID).FirstOrDefault().Group_ID; |
|
2214 |
//MARKUP_DATA UPDATE |
|
2215 |
//Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.UpdateMarkupData((InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo).CommentID, 0, App.ViewInfo.ProjectNO); |
|
2216 |
//Logger.sendReqLog("UpdateMarkupData: ", "", 1); |
|
2217 |
ViewerDataModel.Instance.MyMarkupList.Where(d => d.ID == (InnerItem.DrawingData as CommentUserInfo).CommentID).FirstOrDefault().Group_ID = 0; |
|
2218 |
ViewerDataModel.Instance.MyMarkupList.Where(d => d.ID == (InnerItem.DrawingData as CommentUserInfo).CommentID).FirstOrDefault().IsUpdate = true; |
|
2219 |
|
|
2220 |
|
|
2221 |
//MARKUP_DATA_GROUP UPDATE |
|
2222 |
bool value = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.UpdateMarkupDataGroup(group_id, App.ViewInfo.ProjectNO);
|
|
2223 |
Logger.sendReqLog("AddMarkupDataGroup: ", value.ToString(), 1);
|
|
2224 |
} |
|
2225 |
} |
|
2226 |
} |
|
2227 |
} |
|
2228 |
} |
|
2183 |
//var UnGrouptoggleList = this.Parent.ChildrenOfType<RadRibbonToggleButton>();
|
|
2184 |
//foreach (var togle in UnGrouptoggleList)
|
|
2185 |
//{
|
|
2186 |
// togle.IsChecked = false;
|
|
2187 |
//}
|
|
2188 |
//if (this.ParentOfType<MainWindow>().dzMainMenu.currentControl != null)
|
|
2189 |
//{
|
|
2190 |
// ViewerDataModel.Instance.MarkupControls_USER.Remove(this.ParentOfType<MainWindow>().dzMainMenu.currentControl);
|
|
2191 |
// this.ParentOfType<MainWindow>().dzMainMenu.currentControl = null;
|
|
2192 |
//}
|
|
2193 |
//this.ParentOfType<MainWindow>().dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.None;
|
|
2194 |
//instanceMain.dzMainMenu.controlType = MarkupToPDF.Controls.Common.ControlType.None;
|
|
2195 |
//instanceMain.dzMainMenu.isLeftMouseButtonDownOnWindow = false;
|
|
2196 |
|
|
2197 |
//if (ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children.Count < 1) //선택된 것이 없으면
|
|
2198 |
//{
|
|
2199 |
// this.ParentOfType<MainWindow>().dzMainMenu.DialogMessage_Alert("Please Select Controls", "Alert");
|
|
2200 |
//}
|
|
2201 |
//else//if (this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children.Count > 0)
|
|
2202 |
//{
|
|
2203 |
// // string MarkupData = "";
|
|
2204 |
// foreach (var item in this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children)
|
|
2205 |
// {
|
|
2206 |
// if (item.GetType().Name == "AdornerFinal" && (item as AdornerFinal).MemberSet.Count >= 1) // 1개 이상
|
|
2207 |
// {
|
|
2208 |
// //MARKUP_DATA UPDATE
|
|
2209 |
// foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>())
|
|
2210 |
// {
|
|
2211 |
// if (!ViewerDataModel.Instance.MarkupControls.Contains(InnerItem.DrawingData))
|
|
2212 |
// {
|
|
2213 |
// long group_id = ViewerDataModel.Instance.MyMarkupList.Where(d => d.ID == (InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo).CommentID).FirstOrDefault().Group_ID;
|
|
2214 |
// //MARKUP_DATA UPDATE
|
|
2215 |
// //Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.UpdateMarkupData((InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo).CommentID, 0, App.ViewInfo.ProjectNO);
|
|
2216 |
// //Logger.sendReqLog("UpdateMarkupData: ", "", 1);
|
|
2217 |
// ViewerDataModel.Instance.MyMarkupList.Where(d => d.ID == (InnerItem.DrawingData as CommentUserInfo).CommentID).FirstOrDefault().Group_ID = 0;
|
|
2218 |
// ViewerDataModel.Instance.MyMarkupList.Where(d => d.ID == (InnerItem.DrawingData as CommentUserInfo).CommentID).FirstOrDefault().IsUpdate = true;
|
|
2219 |
|
|
2220 |
|
|
2221 |
// //MARKUP_DATA_GROUP UPDATE
|
|
2222 |
// //bool value = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.UpdateMarkupDataGroup(group_id, App.ViewInfo.ProjectNO);
|
|
2223 |
// //Logger.sendReqLog("AddMarkupDataGroup: ", value.ToString(), 1);
|
|
2224 |
// }
|
|
2225 |
// }
|
|
2226 |
// }
|
|
2227 |
// }
|
|
2228 |
//}
|
|
2229 | 2229 |
break; |
2230 | 2230 |
#endregion |
2231 | 2231 |
#region Capture |
내보내기 Unified diff