PublicClass.cs 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
  1. using LYFZ.Helper;
  2. using LYFZ.Software.MainBusiness.DoorCityProcess;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Data;
  7. using System.Drawing;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Windows.Forms;
  11. namespace LYFZ.Software.MainBusiness.CameraControlBook
  12. {
  13. public class PublicClass
  14. {
  15. static LYFZ.BLL.BLL_ErpOrder orbll = new BLL.BLL_ErpOrder();
  16. static LYFZ.BLL.BLL_ErpSystemCategory scbll = new BLL.BLL_ErpSystemCategory();
  17. public static bool GetMagess(bool IsShowPrompt = true, string StrUserNumber = "")
  18. {
  19. if (LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.CameraControlBook, LYFZ.CustomAttributes.OperatingAuthority.CameraControlBook_AnPaiQuantitySet))
  20. {
  21. if (IsShowPrompt)
  22. {
  23. if (MessageBoxCustom.Show("您确定要保存此操作吗?", "温馨提示", MessageBoxButtons.YesNo) == DialogResult.No)
  24. { return false; }
  25. }
  26. }
  27. else
  28. {
  29. LYFZ.Software.MainBusiness.DoorCityProcess.SuperSmallForm.AuthorizeLoginSuperSmallForm frm = new DoorCityProcess.SuperSmallForm.AuthorizeLoginSuperSmallForm("CameraControlBook", LYFZ.CustomAttributes.OperatingAuthority.CameraControlBook_AnPaiQuantitySet);
  30. frm.ShowDialog();
  31. if (!frm.IsSaveed)
  32. { return false; }
  33. else
  34. {
  35. if (!LYFZ.BLL.BLL_ErpUser.GetRights(frm.CurrentAuthorizeUserRights.CameraControlBook, LYFZ.CustomAttributes.OperatingAuthority.CameraControlBook_AnPaiQuantitySet, frm.User_BelongRoles))
  36. {
  37. frm.SetAuthorizationResult(String.Format("授权失败,授权人没有摄控本安排数量设置权限"));
  38. MessageBoxCustom.Show("对不起!授权帐号:" + frm.StrUserAccount + "没有摄控本安排数量设置。");
  39. return false;
  40. }
  41. else {
  42. frm.SetAuthorizationResult();
  43. }
  44. }
  45. }
  46. return true;
  47. }
  48. /// <summary>
  49. /// 权限受权
  50. /// </summary>
  51. /// <param name="StrWindowText">窗体说明权限</param>
  52. /// <returns></returns>
  53. public static bool GetMagess_PermissionsAuthorization(string StrWindowText, LYFZ.CustomAttributes.OperatingAuthority operatingAuthority)
  54. {
  55. LYFZ.Software.MainBusiness.DoorCityProcess.SuperSmallForm.AuthorizeLoginSuperSmallForm frm = new DoorCityProcess.SuperSmallForm.AuthorizeLoginSuperSmallForm("CameraControlBook", operatingAuthority);
  56. frm.StrWindowText = StrWindowText;
  57. frm.ShowDialog();
  58. if (!frm.IsSaveed)
  59. { return false; }
  60. else if (!LYFZ.BLL.BLL_ErpUser.GetRights(frm.CurrentAuthorizeUserRights.CameraControlBook, operatingAuthority, frm.User_BelongRoles))
  61. {
  62. frm.SetAuthorizationResult(String.Format("授权失败,授权人没有{0}权限", StrWindowText));
  63. MessageBoxCustom.Show("对不起!授权帐号:" + frm.StrUserAccount + "没有" + StrWindowText + "权限。"); return false;
  64. }
  65. else {
  66. frm.SetAuthorizationResult();
  67. }
  68. return true;
  69. }
  70. /// <summary>
  71. /// 获取当前版本
  72. /// </summary>
  73. /// <returns></returns>
  74. public static string GetVersion()
  75. {
  76. string ColumnType = "";
  77. if (LYFZ.Software.MainBusiness.EnumPermissions.BusinessType.写真版 == LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.GetBusinessType())
  78. { ColumnType = "2"; }
  79. else if (LYFZ.Software.MainBusiness.EnumPermissions.BusinessType.婚纱版 == LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.GetBusinessType())
  80. { ColumnType = "0"; }
  81. else if (LYFZ.Software.MainBusiness.EnumPermissions.BusinessType.儿童版 == LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.GetBusinessType())
  82. { ColumnType = "1"; }
  83. else if (LYFZ.Software.MainBusiness.EnumPermissions.BusinessType.旗舰版 == LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.GetBusinessType())
  84. { ColumnType = "-1"; }
  85. return ColumnType;
  86. }
  87. /// <summary>
  88. /// 设计加载的项
  89. /// </summary>
  90. /// <param name="txtName1"></param>
  91. /// <param name="txtName2"></param>
  92. /// <param name="lblName1"></param>
  93. /// <param name="lblName2"></param>
  94. /// <param name="StrOrderType"></param>
  95. /// <param name="StrName"></param>
  96. /// <param name="StrSex"></param>
  97. /// <param name="LocationX">X坐标偏移量</param>
  98. public static void SetClientData(LYFZ.ComponentLibrary.TextBoxEx txtName1, LYFZ.ComponentLibrary.TextBoxEx txtName2, LYFZ.ComponentLibrary.LabelEx lblName1, LYFZ.ComponentLibrary.LabelEx lblName2, string StrOrderType, string StrName, string StrSex, int LocationX = 0)
  99. {
  100. string[] StrNameArray = StrName.Trim().Split('/');
  101. string[] StrSexArray = StrSex.Trim().Split('/');
  102. if (StrOrderType.Trim() == "0")
  103. {
  104. if (StrNameArray.Length > 1)
  105. {
  106. if (StrSexArray[0].Trim() == "男")
  107. { lblName1.Text = "男宾姓名:"; }
  108. else if (StrSexArray[0].Trim() == "女")
  109. { lblName1.Text = "女宾姓名:"; }
  110. txtName1.Text = StrNameArray[0].Trim();
  111. if (StrSexArray.Length > 1)
  112. {
  113. if (StrSexArray[1].Trim() == "男")
  114. { lblName2.Text = "男宾姓名:"; }
  115. else if (StrSexArray[1].Trim() == "女")
  116. { lblName2.Text = "女宾姓名:"; }
  117. txtName2.Text = StrNameArray[1].Trim();
  118. }
  119. else
  120. {
  121. if (StrSexArray[0].Trim() == "男")
  122. { lblName2.Text = "女宾姓名:"; }
  123. else if (StrSexArray[0].Trim() == "女")
  124. { lblName2.Text = "男宾姓名:"; }
  125. txtName2.Text = StrNameArray[1].Trim();
  126. }
  127. }
  128. else
  129. {
  130. lblName1.Text = "男宾姓名:";
  131. lblName2.Text = "女宾姓名:";
  132. if (StrSexArray[0].Trim() == "男")
  133. { txtName1.Text = StrNameArray[0].Trim(); }
  134. else if (StrSexArray[0].Trim() == "女")
  135. { txtName2.Text = StrNameArray[0].Trim(); }
  136. }
  137. }
  138. else if (StrOrderType.Trim() == "1")
  139. {
  140. lblName1.Text = "宝贝姓名:";
  141. lblName2.Text = "家长姓名:";
  142. txtName1.Text = StrNameArray[0].Trim();
  143. if (StrNameArray.Length > 1)
  144. {
  145. txtName2.Text = StrNameArray[1].Trim();
  146. }
  147. else {
  148. txtName2.Text = StrNameArray[0].Trim();
  149. }
  150. }
  151. else if (StrOrderType.Trim() == "2" || StrOrderType.Trim() == "3")
  152. {
  153. lblName1.Text = "客户姓名:";
  154. lblName2.Text = "客户性别:";
  155. txtName1.Text = StrNameArray[0].Trim();
  156. txtName2.Text = StrSexArray[0].Trim();
  157. }
  158. lblName1.Location = new Point(txtName1.Location.X - 71, txtName1.Location.Y + 4);
  159. lblName2.Location = new Point(txtName2.Location.X - 71, txtName2.Location.Y + 4);
  160. }
  161. /// <summary>
  162. /// 设计加载的项
  163. /// </summary>
  164. /// <param name="lblName1"></param>
  165. /// <param name="lblName2"></param>
  166. /// <param name="LocationX">X坐标偏移量</param>
  167. public static void SetClientData(LYFZ.ComponentLibrary.LabelEx lblName1, LYFZ.ComponentLibrary.LabelEx lblName2, int LocationX = 0)
  168. {
  169. string StrOrderType = GetVersion();
  170. if (StrOrderType == "2")
  171. {
  172. lblName1.Text = "客户姓名:";
  173. lblName2.Text = "客户性别:";
  174. lblName1.Location = new Point(30 + LocationX, lblName1.Location.Y);
  175. lblName2.Location = new Point(lblName1.Location.X, lblName2.Location.Y);
  176. }
  177. else if (StrOrderType == "0")
  178. {
  179. lblName1.Text = "男宾姓名:";
  180. lblName2.Text = "女宾姓名:";
  181. lblName1.Location = new Point(30 + LocationX, lblName1.Location.Y);
  182. lblName2.Location = new Point(lblName1.Location.X, lblName2.Location.Y);
  183. }
  184. else if (StrOrderType == "1")
  185. {
  186. lblName1.Text = "家长姓名:";
  187. lblName2.Text = "宝贝姓名:";
  188. lblName1.Location = new Point(30 + LocationX, lblName1.Location.Y);
  189. lblName2.Location = new Point(lblName1.Location.X, lblName2.Location.Y);
  190. }
  191. else if (StrOrderType == "-1")
  192. {
  193. lblName1.Text = "男/家姓名:";
  194. lblName2.Text = "女/宝姓名:";
  195. lblName1.Location = new Point(25 + LocationX, lblName1.Location.Y);
  196. lblName2.Location = new Point(lblName1.Location.X, lblName2.Location.Y);
  197. }
  198. }
  199. /// <summary>
  200. /// 输入查询客户
  201. /// </summary>
  202. /// <param name="txtTextQuery"></param>
  203. /// <param name="lstTextQuery"></param>
  204. public static void InputQueryClient(LYFZ.ComponentLibrary.TextBoxEx txtTextQuery, LYFZ.ComponentLibrary.ListBoxEx lstTextQuery, int lstHeight = 300, Model.CameraType cameraType= Model.CameraType.拍照客人)
  205. {
  206. lstTextQuery.Items.Clear();
  207. string StrText = txtTextQuery.Text.Trim();
  208. //DataTable tblClientGroup = new DataTable();
  209. DataRow[] dr = null;
  210. LYFZ.ComponentLibrary.FrmLoadHandling.LoadDoWorkMethod(delegate(object obj, BackgroundWorker backgroundWorker)
  211. {
  212. if (StrText != "")
  213. {
  214. /* string StrWhere = "";
  215. if (LYFZ.Command.Command_Validate.IsNumber(StrText))
  216. { StrWhere += " and (Cus_Telephone like '%" + StrText + "%' or Ord_SinceOrderNumber like '%" + StrText + "%')"; }
  217. else if (LYFZ.Command.Command_Validate.IsEnglish(StrText))
  218. { StrWhere += " and (GP_OrderNumber like '%" + StrText + "%' OR Ord_SinceOrderNumber like '%" + StrText + "%' OR Cus_Name_py like '%" + StrText + "%')"; }
  219. else if (LYFZ.Command.Command_Validate.IsChinese(StrText))
  220. { StrWhere += " and (GP_OrderNumber like '%" + StrText + "%' OR Ord_SinceOrderNumber like '%" + StrText + "%' OR Cus_Name like '%" + StrText + "%')"; }
  221. else
  222. { StrWhere += " and (GP_OrderNumber like '%" + StrText + "%' OR Ord_SinceOrderNumber like '%" + StrText + "%' OR Cus_Name like '%" + StrText + "%' and Cus_Telephone like '%" + StrText + "%' OR Cus_Name_py like '%" + StrText + "%')"; }
  223. tblClientGroup = new BLL.BLL_ErpOrder().GetView_Custom("tempTB_AggregationCustomer Left Join tb_ErpOrder on Ord_Number = GP_OrderNumber", StrWhere: "Ord_Number is not null And GP_OrderNumber <> ''" + StrWhere, TopCount: 30, ShowColumnName: "Ord_SinceOrderNumber,GP_OrderNumber,Cus_Name,Cus_Name_py,Cus_Telephone,Ord_OrderAnnotation,dbo.fn_CheckOrderType(GP_CustomerType) AS GP_CustomerType,Mc_CradNumber,Mc_CardType").Tables[0];
  224. */
  225. try
  226. {
  227. dr = new BLL.BLL_ErpOrder().GetOrderCustomerDataTable(StrText,20, cameraType).Select().OrderBy(r=>r.Field<string>("Cus_Telephone")).ToArray();
  228. }
  229. catch(Exception ex)
  230. {
  231. MessageBoxCustom.Show(String.Format("查询数据时出错:{0}",ex.Message));
  232. }
  233. }
  234. });
  235. if (dr != null)
  236. {
  237. foreach (DataRow row in dr)
  238. {
  239. string biaoZhu = "";
  240. if (!String.IsNullOrWhiteSpace(row["Ord_OrderAnnotation"].ToString().Trim()))
  241. {
  242. biaoZhu = String.Format("标注:{0}", row["Ord_OrderAnnotation"].ToString().Trim());
  243. }
  244. string ProcessStatus = "";
  245. if (!String.IsNullOrWhiteSpace(row["流程状态"].ToString().Trim()))
  246. {
  247. ProcessStatus = String.Format("【{0}】", row["流程状态"].ToString().Trim());
  248. }
  249. string VipString = "";
  250. string vipType = "";
  251. if (!String.IsNullOrWhiteSpace(row["Mc_CardType"].ToString().Trim()))
  252. {
  253. vipType = String.Format("{0}", row["Mc_CardType"].ToString().Trim() == "无" ? "会员卡号" : row["Mc_CardType"].ToString().Trim());
  254. }
  255. if (!String.IsNullOrWhiteSpace(row["Mc_CradNumber"].ToString().Trim()))
  256. {
  257. VipString = String.Format("{0}:{1}"
  258. , vipType
  259. , row["Mc_CradNumber"].ToString().Trim());
  260. }
  261. string textString = String.Format("{0} {1} {2} {3} {4} {5}"
  262. , row["GP_CustomerType_Text"].ToString().Trim()
  263. , row["Cus_Name"].ToString().Trim()
  264. , row["Ord_SinceOrderNumber"].ToString().Trim()
  265. , biaoZhu
  266. , ProcessStatus
  267. , VipString
  268. );
  269. lstTextQuery.Items.Add(new ListItem(textString, row["GP_OrderNumber"].ToString().Trim()));
  270. }
  271. if (lstTextQuery.Items.Count > 0)
  272. {
  273. lstTextQuery.Cursor = System.Windows.Forms.Cursors.Default;
  274. lstTextQuery.SelectedIndex = 0;
  275. lstTextQuery.Height = lstHeight;
  276. }
  277. else
  278. {
  279. lstTextQuery.Height = 150;
  280. }
  281. lstTextQuery.Location = new Point(txtTextQuery.Location.X + 1, txtTextQuery.Location.Y + txtTextQuery.Height);
  282. lstTextQuery.Visible = true;
  283. lstTextQuery.BringToFront();
  284. }
  285. }
  286. #region 添加计件提成
  287. /// <summary>
  288. /// 添加计件提成
  289. /// </summary>
  290. /// <param name="wm"></param>
  291. /// <param name="IndexCount"></param>
  292. /// <param name="StrTime"></param>
  293. /// <param name="StrName"></param>
  294. /// <param name="clist"></param>
  295. public static LYFZ.Model.Model_ErpPieceCommissionRecords GetPieceCommissionRecordsModel(LYFZ.Model.Model_ErpWeddingService wm, int IndexCount, DateTime StrTime, string StrName)
  296. {
  297. LYFZ.Model.Model_ErpPieceCommissionRecords modelRecords = new Model.Model_ErpPieceCommissionRecords();
  298. modelRecords.Pcr_DividedShop = LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.GetLocalCompanyInfoID();
  299. modelRecords.Pcr_OrderNumber = wm.Ws_Number;
  300. if (IndexCount == 1)
  301. { modelRecords.Pcr_DigitalDivision = wm.Ws_Serviceman1; }
  302. else
  303. { modelRecords.Pcr_DigitalDivision = wm.Ws_Serviceman2; }
  304. modelRecords.Pcr_Date = Convert.ToDateTime(wm.Ws_WeddingDate);
  305. string StrContentName = GetContentNumber(wm.Ws_ProdName);
  306. if (string.IsNullOrEmpty(StrContentName))
  307. { return null; }
  308. modelRecords.Pcr_CompletionContents = StrContentName;
  309. modelRecords.Pcr_Quantity = wm.Ws_ProdQuantity;
  310. modelRecords.Pcr_CreateTime = StrTime;
  311. modelRecords.Pcr_EntryPeople = StrName;
  312. modelRecords.Pcr_Type = 1;
  313. modelRecords.Pcr_MarkKey = wm.Ws_Number + "_" + wm.Ws_ProdName + "_" + wm.Ws_UpdateDateTime.ToString("yyyyMMddHHmmssfff");
  314. modelRecords.Pcr_OrderSource = "订单";
  315. return modelRecords;
  316. }
  317. /// <summary>
  318. /// 获取服务内容编号
  319. /// </summary>
  320. /// <param name="StrName"></param>
  321. /// <returns></returns>
  322. static string GetContentNumber(string StrName)
  323. {
  324. DataTable tbl = orbll.GetView_Custom("tb_ErpSystemCategory", StrWhere: "Sc_ClassCode = 'BEBBBABBEBAIHGDCB'", ShowColumnName: "ID").Tables[0];
  325. if (tbl.Rows.Count > 0)
  326. {
  327. DataTable tbl2 = orbll.GetView_Custom("tb_ErpSystemCategory", StrWhere: " Sc_ClassParentID = '" + tbl.Rows[0]["ID"].ToString().Trim() + "'", ShowColumnName: "Sc_ClassCode,Sc_ClassName").Tables[0];
  328. DataRow[] dtRow = tbl2.Select("Sc_ClassName = '" + StrName + "'");
  329. if (dtRow.Length > 0)
  330. { return dtRow[0]["Sc_ClassCode"].ToString().Trim(); }
  331. else
  332. {
  333. LYFZ.Model.Model_ErpSystemCategory model = new Model.Model_ErpSystemCategory();
  334. model.Sc_ClassCode = scbll.GetNewClassCode(0);
  335. model.Sc_ClassName = StrName;
  336. model.Sc_ClassParentID = Convert.ToInt32(tbl.Rows[0]["ID"]);
  337. model.Sc_ClassRemark = "";
  338. model.Sc_IsDisable = false;
  339. model.Sc_IsReadOnly = false;
  340. model.Sc_IsDelete = false;
  341. model.Sc_URL = "";
  342. model.Sc_IsEnabledURL = false;
  343. if (scbll.Add(model))
  344. { return GetContentNumber(StrName); }
  345. }
  346. }
  347. return "";
  348. }
  349. #endregion
  350. public static void GetSelectWorkPerson(string StrDateTime, LYFZ.ComponentLibrary.TextBoxEx txtWorkPerson, LYFZ.EnumPublic.EnumWorkPersonType StrWorkPersonType)
  351. {
  352. LYFZ.Software.MainBusiness.CameraControlBook.SuperSmallForm.SelectWorkPersonSuperSmallForm frm = new SuperSmallForm.SelectWorkPersonSuperSmallForm();
  353. frm.StrTime = StrDateTime;
  354. frm.WorkPersonType = StrWorkPersonType;
  355. frm.ShowDialog();
  356. if (frm.IsSaveed)
  357. {
  358. txtWorkPerson.Text = frm.StrPersonName;
  359. txtWorkPerson.Tag = frm.StrPersonNumber;
  360. }
  361. }
  362. /// <summary>
  363. /// 是否休息
  364. /// </summary>
  365. /// <param name="StrDateTime">日期</param>
  366. /// <param name="StrPersonName">员工编号</param>
  367. /// <returns>true:休息;false:上班</returns>
  368. public static bool GetRestPerson(string StrDateTime, string StrPersonName)
  369. {
  370. bool IsRest = false;
  371. if (!string.IsNullOrEmpty(StrDateTime.Trim()) && !string.IsNullOrEmpty(StrPersonName.Trim()))
  372. {
  373. DataTable dt = orbll.GetView_Custom("loninbansets", StrWhere: "fixed = '休息' And User_ID = '" + StrPersonName.Trim() + "' " + LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.GetDateTime("Time", StrDateTime.Trim(), StrDateTime.Trim()), ShowColumnName: "User_ID").Tables[0];
  374. if (dt.Rows.Count > 0)
  375. { IsRest = true; }
  376. }
  377. return IsRest;
  378. }
  379. /// <summary>
  380. /// 是否休息
  381. /// </summary>
  382. /// <param name="StrDateTime">日期</param>
  383. /// <returns>true:休息;false:上班</returns>
  384. public static DataTable GetRestPerson(string StrDateTime)
  385. {
  386. DataTable dt = new DataTable();
  387. if (!string.IsNullOrEmpty(StrDateTime.Trim()))
  388. {
  389. dt = orbll.GetView_Custom("loninbansets", StrWhere: "fixed = '休息' " + LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.GetDateTime("Time", StrDateTime.Trim(), StrDateTime.Trim()), ShowColumnName: "User_ID").Tables[0];
  390. }
  391. return dt;
  392. }
  393. /// <summary>
  394. /// 加载窗体
  395. /// </summary>
  396. /// <param name="StrSelectType"></param>
  397. /// <param name="StrOrdNumber"></param>
  398. public static bool LoadForm(string StrSelectType, string StrOrdNumber = "")
  399. {
  400. bool IsSaveed = false;
  401. switch (StrSelectType)
  402. {
  403. case "0":
  404. LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.PhotographedReservationSmallForm frm0 = new CameraControlBook.SmallForm.PhotographedReservationSmallForm();
  405. frm0.OrdNumber = StrOrdNumber;
  406. frm0.ShowDialog();
  407. IsSaveed = frm0.IsSave;
  408. break;
  409. case "1":
  410. LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.FilmsSelectionReservationSmallForm frm1 = new CameraControlBook.SmallForm.FilmsSelectionReservationSmallForm();
  411. frm1.OrdNumber = StrOrdNumber;
  412. frm1.ShowDialog();
  413. IsSaveed = frm1.IsSave;
  414. break;
  415. case "2":
  416. LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.LookDesignReservationSmallForm frm2 = new CameraControlBook.SmallForm.LookDesignReservationSmallForm();
  417. frm2.OrdNumber = StrOrdNumber;
  418. frm2.ShowDialog();
  419. IsSaveed = frm2.IsSave;
  420. break;
  421. case "3":
  422. LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.TakePiecesReservationSmallForm frm3 = new CameraControlBook.SmallForm.TakePiecesReservationSmallForm();
  423. frm3.OrdNumber = StrOrdNumber;
  424. frm3.ShowDialog();
  425. IsSaveed = frm3.IsSave;
  426. break;
  427. case "4":
  428. LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.WeddingReservationSmallForm frm4 = new CameraControlBook.SmallForm.WeddingReservationSmallForm();
  429. frm4.OrdNumber = StrOrdNumber;
  430. frm4.ShowDialog();
  431. IsSaveed = frm4.IsSaveed;
  432. break;
  433. case "5":
  434. LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.SelectDressReservationSmallForm frm5 = new CameraControlBook.SmallForm.SelectDressReservationSmallForm();
  435. frm5.OrdNumber = StrOrdNumber;
  436. frm5.ShowDialog();
  437. IsSaveed = frm5.IsSave;
  438. break;
  439. }
  440. return IsSaveed;
  441. }
  442. }
  443. }
  444. #region 放弃
  445. //namespace LYFZ
  446. //{
  447. // public static class CameraControlBookEnum
  448. // {
  449. // /// <summary>
  450. // /// 摄控安排流程
  451. // /// </summary>
  452. // public enum EnumWorkPersonType
  453. // {
  454. // 选礼服师,
  455. // 摄影师,
  456. // 摄影助理,
  457. // 化妆师,
  458. // 化妆助理,
  459. // 引导师,
  460. // 选片师,
  461. // 看设计师,
  462. // 取件师,
  463. // 服务师
  464. // }
  465. // /// <summary>
  466. // /// 摄控安排流程
  467. // /// </summary>
  468. // public enum EnumUnityArrangeWorkType
  469. // {
  470. // 拍照客人,
  471. // 选片客人,
  472. // 看版客人,
  473. // 取件客人,
  474. // 服务客人,
  475. // 选礼服客人
  476. // }
  477. // }
  478. // public class CameraControlBookUnityArrangeWorkModel
  479. // {
  480. // private bool _IsDateTime;
  481. // /// <summary>
  482. // /// 是否启用日期
  483. // /// </summary>
  484. // public bool IsDateTime
  485. // {
  486. // get { return _IsDateTime; }
  487. // set { _IsDateTime = value; }
  488. // }
  489. // private string _StrDateTime;
  490. // /// <summary>
  491. // /// 日期时间
  492. // /// </summary>
  493. // public string StrDateTime
  494. // {
  495. // get { return _StrDateTime; }
  496. // set { _StrDateTime = value; }
  497. // }
  498. // private bool _IsBootDivisionName;
  499. // /// <summary>
  500. // /// 是否启用引导师
  501. // /// </summary>
  502. // public bool IsBootDivisionName
  503. // {
  504. // get { return _IsBootDivisionName; }
  505. // set { _IsBootDivisionName = value; }
  506. // }
  507. // private string _BootDivisionName;
  508. // /// <summary>
  509. // /// 引导师
  510. // /// </summary>
  511. // public string BootDivisionName
  512. // {
  513. // get { return _BootDivisionName; }
  514. // set { _BootDivisionName = value; }
  515. // }
  516. // private string _BootDivisionTag;
  517. // /// <summary>
  518. // /// 引导师编号
  519. // /// </summary>
  520. // public string BootDivisionTag
  521. // {
  522. // get { return _BootDivisionTag; }
  523. // set { _BootDivisionTag = value; }
  524. // }
  525. // private bool _IsClothingName;
  526. // /// <summary>
  527. // /// 是否启用礼服师
  528. // /// </summary>
  529. // public bool IsClothingName
  530. // {
  531. // get { return _IsClothingName; }
  532. // set { _IsClothingName = value; }
  533. // }
  534. // private string _ClothingName;
  535. // /// <summary>
  536. // /// 礼服师
  537. // /// </summary>
  538. // public string ClothingName
  539. // {
  540. // get { return _ClothingName; }
  541. // set { _ClothingName = value; }
  542. // }
  543. // private string _ClothingTag;
  544. // /// <summary>
  545. // /// 礼服师编号
  546. // /// </summary>
  547. // public string ClothingTag
  548. // {
  549. // get { return _ClothingTag; }
  550. // set { _ClothingTag = value; }
  551. // }
  552. // private bool _IsFilmSelectionName;
  553. // /// <summary>
  554. // /// 是否启用选片师
  555. // /// </summary>
  556. // public bool IsFilmSelectionName
  557. // {
  558. // get { return _IsFilmSelectionName; }
  559. // set { _IsFilmSelectionName = value; }
  560. // }
  561. // private string _FilmSelectionName;
  562. // /// <summary>
  563. // /// 选片师
  564. // /// </summary>
  565. // public string FilmSelectionName
  566. // {
  567. // get { return _FilmSelectionName; }
  568. // set { _FilmSelectionName = value; }
  569. // }
  570. // private string _FilmSelectionTag;
  571. // /// <summary>
  572. // /// 选片师编号
  573. // /// </summary>
  574. // public string FilmSelectionTag
  575. // {
  576. // get { return _FilmSelectionTag; }
  577. // set { _FilmSelectionTag = value; }
  578. // }
  579. // private bool _IsLookDesignName;
  580. // /// <summary>
  581. // /// 是否启用看版师
  582. // /// </summary>
  583. // public bool IsLookDesignName
  584. // {
  585. // get { return _IsLookDesignName; }
  586. // set { _IsLookDesignName = value; }
  587. // }
  588. // private string _LookDesignName;
  589. // /// <summary>
  590. // /// 看版师
  591. // /// </summary>
  592. // public string LookDesignName
  593. // {
  594. // get { return _LookDesignName; }
  595. // set { _LookDesignName = value; }
  596. // }
  597. // private string _LookDesignTag;
  598. // /// <summary>
  599. // /// 看版师编号
  600. // /// </summary>
  601. // public string LookDesignTag
  602. // {
  603. // get { return _LookDesignTag; }
  604. // set { _LookDesignTag = value; }
  605. // }
  606. // private bool _IsMakeupArtistName;
  607. // /// <summary>
  608. // /// 是否启用化妆师
  609. // /// </summary>
  610. // public bool IsMakeupArtistName
  611. // {
  612. // get { return _IsMakeupArtistName; }
  613. // set { _IsMakeupArtistName = value; }
  614. // }
  615. // private string _MakeupArtistName;
  616. // /// <summary>
  617. // /// 化妆师
  618. // /// </summary>
  619. // public string MakeupArtistName
  620. // {
  621. // get { return _MakeupArtistName; }
  622. // set { _MakeupArtistName = value; }
  623. // }
  624. // private string _MakeupArtistTag;
  625. // /// <summary>
  626. // /// 化妆师编号
  627. // /// </summary>
  628. // public string MakeupArtistTag
  629. // {
  630. // get { return _MakeupArtistTag; }
  631. // set { _MakeupArtistTag = value; }
  632. // }
  633. // private bool _IsMakeupAssistantName;
  634. // /// <summary>
  635. // /// 是否启用化妆助理
  636. // /// </summary>
  637. // public bool IsMakeupAssistantName
  638. // {
  639. // get { return _IsMakeupAssistantName; }
  640. // set { _IsMakeupAssistantName = value; }
  641. // }
  642. // private string _MakeupAssistantName;
  643. // /// <summary>
  644. // /// 化妆助理
  645. // /// </summary>
  646. // public string MakeupAssistantName
  647. // {
  648. // get { return _MakeupAssistantName; }
  649. // set { _MakeupAssistantName = value; }
  650. // }
  651. // private string _MakeupAssistantTag;
  652. // /// <summary>
  653. // /// 化妆助理编号
  654. // /// </summary>
  655. // public string MakeupAssistantTag
  656. // {
  657. // get { return _MakeupAssistantTag; }
  658. // set { _MakeupAssistantTag = value; }
  659. // }
  660. // private bool _IsPhotographerName;
  661. // /// <summary>
  662. // /// 是否启用摄影师
  663. // /// </summary>
  664. // public bool IsPhotographerName
  665. // {
  666. // get { return _IsPhotographerName; }
  667. // set { _IsPhotographerName = value; }
  668. // }
  669. // private string _PhotographerName;
  670. // /// <summary>
  671. // /// 摄影师
  672. // /// </summary>
  673. // public string PhotographerName
  674. // {
  675. // get { return _PhotographerName; }
  676. // set { _PhotographerName = value; }
  677. // }
  678. // private string _PhotographerTag;
  679. // /// <summary>
  680. // /// 摄影师编号
  681. // /// </summary>
  682. // public string PhotographerTag
  683. // {
  684. // get { return _PhotographerTag; }
  685. // set { _PhotographerTag = value; }
  686. // }
  687. // private bool _IsPhotographyAssistantName;
  688. // /// <summary>
  689. // /// 是否启用摄影助理
  690. // /// </summary>
  691. // public bool IsPhotographyAssistantName
  692. // {
  693. // get { return _IsPhotographyAssistantName; }
  694. // set { _IsPhotographyAssistantName = value; }
  695. // }
  696. // private string _PhotographyAssistantName;
  697. // /// <summary>
  698. // /// 摄影助理
  699. // /// </summary>
  700. // public string PhotographyAssistantName
  701. // {
  702. // get { return _PhotographyAssistantName; }
  703. // set { _PhotographyAssistantName = value; }
  704. // }
  705. // private string _PhotographyAssistantTag;
  706. // /// <summary>
  707. // /// 摄影助理编号
  708. // /// </summary>
  709. // public string PhotographyAssistantTag
  710. // {
  711. // get { return _PhotographyAssistantTag; }
  712. // set { _PhotographyAssistantTag = value; }
  713. // }
  714. // private bool _IsPickupName;
  715. // /// <summary>
  716. // /// 是否启用取件师
  717. // /// </summary>
  718. // public bool IsPickupName
  719. // {
  720. // get { return _IsPickupName; }
  721. // set { _IsPickupName = value; }
  722. // }
  723. // private string _PickupName;
  724. // /// <summary>
  725. // /// 取件师
  726. // /// </summary>
  727. // public string PickupName
  728. // {
  729. // get { return _PickupName; }
  730. // set { _PickupName = value; }
  731. // }
  732. // private string _PickupTag;
  733. // /// <summary>
  734. // /// 取件师编号
  735. // /// </summary>
  736. // public string PickupTag
  737. // {
  738. // get { return _PickupTag; }
  739. // set { _PickupTag = value; }
  740. // }
  741. // private bool _IsServiceName1;
  742. // /// <summary>
  743. // /// 是否启用服务人员1
  744. // /// </summary>
  745. // public bool IsServiceName1
  746. // {
  747. // get { return _IsServiceName1; }
  748. // set { _IsServiceName1 = value; }
  749. // }
  750. // private string _ServiceName1;
  751. // /// <summary>
  752. // /// 服务人员1
  753. // /// </summary>
  754. // public string ServiceName1
  755. // {
  756. // get { return _ServiceName1; }
  757. // set { _ServiceName1 = value; }
  758. // }
  759. // private string _ServiceTag1;
  760. // /// <summary>
  761. // /// 服务人员编号1
  762. // /// </summary>
  763. // public string ServiceTag1
  764. // {
  765. // get { return _ServiceTag1; }
  766. // set { _ServiceTag1 = value; }
  767. // }
  768. // private bool _IsServiceName2;
  769. // /// <summary>
  770. // /// 是否启用服务人员2
  771. // /// </summary>
  772. // public bool IsServiceName2
  773. // {
  774. // get { return _IsServiceName2; }
  775. // set { _IsServiceName2 = value; }
  776. // }
  777. // private string _ServiceName2;
  778. // /// <summary>
  779. // /// 服务人员2
  780. // /// </summary>
  781. // public string ServiceName2
  782. // {
  783. // get { return _ServiceName2; }
  784. // set { _ServiceName2 = value; }
  785. // }
  786. // private string _ServiceTag2;
  787. // /// <summary>
  788. // /// 服务人员编号2
  789. // /// </summary>
  790. // public string ServiceTag2
  791. // {
  792. // get { return _ServiceTag2; }
  793. // set { _ServiceTag2 = value; }
  794. // }
  795. // }
  796. //}
  797. #endregion