using LYFZ.Helper;
using LYFZ.Software.MainBusiness.DoorCityProcess;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace LYFZ.Software.MainBusiness.CameraControlBook
{
    public class PublicClass
    {
        static LYFZ.BLL.BLL_ErpOrder orbll = new BLL.BLL_ErpOrder();
        static LYFZ.BLL.BLL_ErpSystemCategory scbll = new BLL.BLL_ErpSystemCategory();
        public static bool GetMagess(bool IsShowPrompt = true, string StrUserNumber = "")
        {
            if (LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.CameraControlBook, LYFZ.CustomAttributes.OperatingAuthority.CameraControlBook_AnPaiQuantitySet))
            {
                if (IsShowPrompt)
                {
                    if (MessageBoxCustom.Show("您确定要保存此操作吗?", "温馨提示", MessageBoxButtons.YesNo) == DialogResult.No)
                    { return false; }
                }
            }
            else
            {
                LYFZ.Software.MainBusiness.DoorCityProcess.SuperSmallForm.AuthorizeLoginSuperSmallForm frm = new DoorCityProcess.SuperSmallForm.AuthorizeLoginSuperSmallForm("CameraControlBook", LYFZ.CustomAttributes.OperatingAuthority.CameraControlBook_AnPaiQuantitySet);
                frm.ShowDialog();
                if (!frm.IsSaveed)
                { return false; }
                else
                {
                    if (!LYFZ.BLL.BLL_ErpUser.GetRights(frm.CurrentAuthorizeUserRights.CameraControlBook, LYFZ.CustomAttributes.OperatingAuthority.CameraControlBook_AnPaiQuantitySet, frm.User_BelongRoles))
                    {
                        frm.SetAuthorizationResult(String.Format("授权失败,授权人没有摄控本安排数量设置权限"));
                        MessageBoxCustom.Show("对不起!授权帐号:" + frm.StrUserAccount + "没有摄控本安排数量设置。");
                        
                        return false;
                    }
                    else {
                        frm.SetAuthorizationResult();
                    }
                }
            }
            return true;
        }
        /// 
        /// 权限受权
        /// 
        /// 窗体说明权限
        /// 
        public static bool GetMagess_PermissionsAuthorization(string StrWindowText, LYFZ.CustomAttributes.OperatingAuthority operatingAuthority)
        {
            LYFZ.Software.MainBusiness.DoorCityProcess.SuperSmallForm.AuthorizeLoginSuperSmallForm frm = new DoorCityProcess.SuperSmallForm.AuthorizeLoginSuperSmallForm("CameraControlBook", operatingAuthority);
            frm.StrWindowText = StrWindowText;
            frm.ShowDialog();
            if (!frm.IsSaveed)
            { return false; }
            else if (!LYFZ.BLL.BLL_ErpUser.GetRights(frm.CurrentAuthorizeUserRights.CameraControlBook, operatingAuthority, frm.User_BelongRoles))
            {
                frm.SetAuthorizationResult(String.Format("授权失败,授权人没有{0}权限", StrWindowText));
                MessageBoxCustom.Show("对不起!授权帐号:" + frm.StrUserAccount + "没有" + StrWindowText + "权限。"); return false;
            }
            else {
                frm.SetAuthorizationResult();
            }
            return true;
        }
        /// 
        /// 获取当前版本
        /// 
        /// 
        public static string GetVersion()
        {
            string ColumnType = "";
            if (LYFZ.Software.MainBusiness.EnumPermissions.BusinessType.写真版 == LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.GetBusinessType())
            { ColumnType = "2"; }
            else if (LYFZ.Software.MainBusiness.EnumPermissions.BusinessType.婚纱版 == LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.GetBusinessType())
            { ColumnType = "0"; }
            else if (LYFZ.Software.MainBusiness.EnumPermissions.BusinessType.儿童版 == LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.GetBusinessType())
            { ColumnType = "1"; }
            else if (LYFZ.Software.MainBusiness.EnumPermissions.BusinessType.旗舰版 == LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.GetBusinessType())
            { ColumnType = "-1"; }
            return ColumnType;
        }
        /// 
        /// 设计加载的项
        /// 
        /// 
        /// 
        /// 
        /// 
        /// 
        /// 
        /// 
        /// X坐标偏移量
        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)
        {
            string[] StrNameArray = StrName.Trim().Split('/');
            string[] StrSexArray = StrSex.Trim().Split('/');
            if (StrOrderType.Trim() == "0")
            {
                if (StrNameArray.Length > 1)
                {
                    if (StrSexArray[0].Trim() == "男")
                    { lblName1.Text = "男宾姓名:"; }
                    else if (StrSexArray[0].Trim() == "女")
                    { lblName1.Text = "女宾姓名:"; }
                    txtName1.Text = StrNameArray[0].Trim();
                    if (StrSexArray.Length > 1)
                    {
                        if (StrSexArray[1].Trim() == "男")
                        { lblName2.Text = "男宾姓名:"; }
                        else if (StrSexArray[1].Trim() == "女")
                        { lblName2.Text = "女宾姓名:"; }
                        txtName2.Text = StrNameArray[1].Trim();
                    }
                    else
                    {
                        if (StrSexArray[0].Trim() == "男")
                        { lblName2.Text = "女宾姓名:"; }
                        else if (StrSexArray[0].Trim() == "女")
                        { lblName2.Text = "男宾姓名:"; }
                        txtName2.Text = StrNameArray[1].Trim();
                    }
                }
                else
                {
                    lblName1.Text = "男宾姓名:";
                    lblName2.Text = "女宾姓名:";
                    if (StrSexArray[0].Trim() == "男")
                    { txtName1.Text = StrNameArray[0].Trim(); }
                    else if (StrSexArray[0].Trim() == "女")
                    { txtName2.Text = StrNameArray[0].Trim(); }
                }
            }
            else if (StrOrderType.Trim() == "1")
            {
                lblName1.Text = "宝贝姓名:";
                lblName2.Text = "家长姓名:";
                txtName1.Text = StrNameArray[0].Trim();
                if (StrNameArray.Length > 1)
                {
                    txtName2.Text = StrNameArray[1].Trim();
                }
                else {
                    txtName2.Text = StrNameArray[0].Trim();
                }
            }
            else if (StrOrderType.Trim() == "2" || StrOrderType.Trim() == "3")
            {
                lblName1.Text = "客户姓名:";
                lblName2.Text = "客户性别:";
                txtName1.Text = StrNameArray[0].Trim();
                txtName2.Text = StrSexArray[0].Trim();
            }
            lblName1.Location = new Point(txtName1.Location.X - 71, txtName1.Location.Y + 4);
            lblName2.Location = new Point(txtName2.Location.X - 71, txtName2.Location.Y + 4);
        }
        /// 
        /// 设计加载的项
        /// 
        /// 
        /// 
        /// X坐标偏移量
        public static void SetClientData(LYFZ.ComponentLibrary.LabelEx lblName1, LYFZ.ComponentLibrary.LabelEx lblName2, int LocationX = 0)
        {
            string StrOrderType = GetVersion();
            if (StrOrderType == "2")
            {
                lblName1.Text = "客户姓名:";
                lblName2.Text = "客户性别:";
                lblName1.Location = new Point(30 + LocationX, lblName1.Location.Y);
                lblName2.Location = new Point(lblName1.Location.X, lblName2.Location.Y);
            }
            else if (StrOrderType == "0")
            {
                lblName1.Text = "男宾姓名:";
                lblName2.Text = "女宾姓名:";
                lblName1.Location = new Point(30 + LocationX, lblName1.Location.Y);
                lblName2.Location = new Point(lblName1.Location.X, lblName2.Location.Y);
            }
            else if (StrOrderType == "1")
            {
                lblName1.Text = "家长姓名:";
                lblName2.Text = "宝贝姓名:";
                lblName1.Location = new Point(30 + LocationX, lblName1.Location.Y);
                lblName2.Location = new Point(lblName1.Location.X, lblName2.Location.Y);
            }
            else if (StrOrderType == "-1")
            {
                lblName1.Text = "男/家姓名:";
                lblName2.Text = "女/宝姓名:";
                lblName1.Location = new Point(25 + LocationX, lblName1.Location.Y);
                lblName2.Location = new Point(lblName1.Location.X, lblName2.Location.Y);
            }
        }
        /// 
        /// 输入查询客户
        /// 
        /// 
        /// 
        public static void InputQueryClient(LYFZ.ComponentLibrary.TextBoxEx txtTextQuery, LYFZ.ComponentLibrary.ListBoxEx lstTextQuery, int lstHeight = 300, Model.CameraType cameraType= Model.CameraType.拍照客人)
        {
            lstTextQuery.Items.Clear();
            string StrText = txtTextQuery.Text.Trim();
            //DataTable tblClientGroup = new DataTable();
            DataRow[] dr = null;
            LYFZ.ComponentLibrary.FrmLoadHandling.LoadDoWorkMethod(delegate(object obj, BackgroundWorker backgroundWorker)
            {
                if (StrText != "")
                {
                    /* string StrWhere = "";
                     if (LYFZ.Command.Command_Validate.IsNumber(StrText))
                     { StrWhere += " and (Cus_Telephone like '%" + StrText + "%' or Ord_SinceOrderNumber like '%" + StrText + "%')"; }
                     else if (LYFZ.Command.Command_Validate.IsEnglish(StrText))
                     { StrWhere += " and (GP_OrderNumber like '%" + StrText + "%' OR Ord_SinceOrderNumber like '%" + StrText + "%' OR Cus_Name_py like '%" + StrText + "%')"; }
                     else if (LYFZ.Command.Command_Validate.IsChinese(StrText))
                     { StrWhere += " and (GP_OrderNumber like '%" + StrText + "%' OR Ord_SinceOrderNumber like '%" + StrText + "%' OR Cus_Name like '%" + StrText + "%')"; }
                     else
                     { 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 + "%')"; }
                     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];
                     */
                    try
                    {
                        dr = new BLL.BLL_ErpOrder().GetOrderCustomerDataTable(StrText,20, cameraType).Select().OrderBy(r=>r.Field("Cus_Telephone")).ToArray();
                    }
                    catch(Exception ex)
                    {
                        MessageBoxCustom.Show(String.Format("查询数据时出错:{0}",ex.Message));
                    }
                    
                }
            });
            if (dr != null)
            {
                foreach (DataRow row in dr)
                {
                    string biaoZhu = "";
                    if (!String.IsNullOrWhiteSpace(row["Ord_OrderAnnotation"].ToString().Trim()))
                    {
                        biaoZhu = String.Format("标注:{0}", row["Ord_OrderAnnotation"].ToString().Trim());
                    }
                    string ProcessStatus = "";
                    if (!String.IsNullOrWhiteSpace(row["流程状态"].ToString().Trim()))
                    {
                        ProcessStatus = String.Format("【{0}】", row["流程状态"].ToString().Trim());
                    }
                    string VipString = "";
                    string vipType = "";
                    if (!String.IsNullOrWhiteSpace(row["Mc_CardType"].ToString().Trim()))
                    {
                        vipType = String.Format("{0}", row["Mc_CardType"].ToString().Trim() == "无" ? "会员卡号" : row["Mc_CardType"].ToString().Trim());
                    }
                    if (!String.IsNullOrWhiteSpace(row["Mc_CradNumber"].ToString().Trim()))
                    {
                        VipString = String.Format("{0}:{1}"
                            , vipType
                            , row["Mc_CradNumber"].ToString().Trim());
                    }
                    string textString = String.Format("{0} {1} {2} {3} {4} {5}"
                    , row["GP_CustomerType_Text"].ToString().Trim()
                    , row["Cus_Name"].ToString().Trim()
                    , row["Ord_SinceOrderNumber"].ToString().Trim()
                    , biaoZhu
                     , ProcessStatus
                    , VipString
                    );
                    lstTextQuery.Items.Add(new ListItem(textString, row["GP_OrderNumber"].ToString().Trim()));
                }
                if (lstTextQuery.Items.Count > 0)
                {
                    lstTextQuery.Cursor = System.Windows.Forms.Cursors.Default;
                    lstTextQuery.SelectedIndex = 0;
                    lstTextQuery.Height = lstHeight;
                }
                else
                {
                    lstTextQuery.Height = 150;
                }
                lstTextQuery.Location = new Point(txtTextQuery.Location.X + 1, txtTextQuery.Location.Y + txtTextQuery.Height);
                lstTextQuery.Visible = true;
                lstTextQuery.BringToFront();
            }
        }
        #region 添加计件提成
        /// 
        /// 添加计件提成
        /// 
        /// 
        /// 
        /// 
        /// 
        /// 
        public static LYFZ.Model.Model_ErpPieceCommissionRecords GetPieceCommissionRecordsModel(LYFZ.Model.Model_ErpWeddingService wm, int IndexCount, DateTime StrTime, string StrName)
        {
            LYFZ.Model.Model_ErpPieceCommissionRecords modelRecords = new Model.Model_ErpPieceCommissionRecords();
            modelRecords.Pcr_DividedShop = LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.GetLocalCompanyInfoID();
            modelRecords.Pcr_OrderNumber = wm.Ws_Number;
            if (IndexCount == 1)
            { modelRecords.Pcr_DigitalDivision = wm.Ws_Serviceman1; }
            else
            { modelRecords.Pcr_DigitalDivision = wm.Ws_Serviceman2; }
            modelRecords.Pcr_Date = Convert.ToDateTime(wm.Ws_WeddingDate);
            string StrContentName = GetContentNumber(wm.Ws_ProdName);
            if (string.IsNullOrEmpty(StrContentName))
            { return null; }
            modelRecords.Pcr_CompletionContents = StrContentName;
            modelRecords.Pcr_Quantity = wm.Ws_ProdQuantity;
            modelRecords.Pcr_CreateTime = StrTime;
            modelRecords.Pcr_EntryPeople = StrName;
            modelRecords.Pcr_Type = 1;
            modelRecords.Pcr_MarkKey = wm.Ws_Number + "_" + wm.Ws_ProdName + "_" + wm.Ws_UpdateDateTime.ToString("yyyyMMddHHmmssfff");
            modelRecords.Pcr_OrderSource = "订单";
            return modelRecords;
        }
        /// 
        /// 获取服务内容编号
        /// 
        /// 
        /// 
        static string GetContentNumber(string StrName)
        {
            DataTable tbl = orbll.GetView_Custom("tb_ErpSystemCategory", StrWhere: "Sc_ClassCode = 'BEBBBABBEBAIHGDCB'", ShowColumnName: "ID").Tables[0];
            if (tbl.Rows.Count > 0)
            {
                DataTable tbl2 = orbll.GetView_Custom("tb_ErpSystemCategory", StrWhere: " Sc_ClassParentID = '" + tbl.Rows[0]["ID"].ToString().Trim() + "'", ShowColumnName: "Sc_ClassCode,Sc_ClassName").Tables[0];
                DataRow[] dtRow = tbl2.Select("Sc_ClassName = '" + StrName + "'");
                if (dtRow.Length > 0)
                { return dtRow[0]["Sc_ClassCode"].ToString().Trim(); }
                else
                {
                    LYFZ.Model.Model_ErpSystemCategory model = new Model.Model_ErpSystemCategory();
                    model.Sc_ClassCode = scbll.GetNewClassCode(0);
                    model.Sc_ClassName = StrName;
                    model.Sc_ClassParentID = Convert.ToInt32(tbl.Rows[0]["ID"]);
                    model.Sc_ClassRemark = "";
                    model.Sc_IsDisable = false;
                    model.Sc_IsReadOnly = false;
                    model.Sc_IsDelete = false;
                    model.Sc_URL = "";
                    model.Sc_IsEnabledURL = false;
                    if (scbll.Add(model))
                    { return GetContentNumber(StrName); }
                }
            }
            return "";
        }
        #endregion
        public static void GetSelectWorkPerson(string StrDateTime, LYFZ.ComponentLibrary.TextBoxEx txtWorkPerson, LYFZ.EnumPublic.EnumWorkPersonType StrWorkPersonType)
        {
            LYFZ.Software.MainBusiness.CameraControlBook.SuperSmallForm.SelectWorkPersonSuperSmallForm frm = new SuperSmallForm.SelectWorkPersonSuperSmallForm();
            frm.StrTime = StrDateTime;
            frm.WorkPersonType = StrWorkPersonType;
            frm.ShowDialog();
            if (frm.IsSaveed)
            {
                txtWorkPerson.Text = frm.StrPersonName;
                txtWorkPerson.Tag = frm.StrPersonNumber;
            }
        }
        /// 
        /// 是否休息
        /// 
        /// 日期
        /// 员工编号
        /// true:休息;false:上班
        public static bool GetRestPerson(string StrDateTime, string StrPersonName)
        {
            bool IsRest = false;
            if (!string.IsNullOrEmpty(StrDateTime.Trim()) && !string.IsNullOrEmpty(StrPersonName.Trim()))
            {
                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];
                if (dt.Rows.Count > 0)
                { IsRest = true; }
            }
            return IsRest;
        }
        /// 
        /// 是否休息
        /// 
        /// 日期
        /// true:休息;false:上班
        public static DataTable GetRestPerson(string StrDateTime)
        {
            DataTable dt = new DataTable();
            if (!string.IsNullOrEmpty(StrDateTime.Trim()))
            {
                dt = orbll.GetView_Custom("loninbansets", StrWhere: "fixed = '休息' " + LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.GetDateTime("Time", StrDateTime.Trim(), StrDateTime.Trim()), ShowColumnName: "User_ID").Tables[0];
            }
            return dt;
        }
        /// 
        /// 加载窗体
        /// 
        /// 
        /// 
        public static bool LoadForm(string StrSelectType, string StrOrdNumber = "")
        {
            bool IsSaveed = false;
            switch (StrSelectType)
            {
                case "0":
                    LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.PhotographedReservationSmallForm frm0 = new CameraControlBook.SmallForm.PhotographedReservationSmallForm();
                    frm0.OrdNumber = StrOrdNumber;
                    frm0.ShowDialog();
                    IsSaveed = frm0.IsSave;
                    break;
                case "1":
                    LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.FilmsSelectionReservationSmallForm frm1 = new CameraControlBook.SmallForm.FilmsSelectionReservationSmallForm();
                    frm1.OrdNumber = StrOrdNumber;
                    frm1.ShowDialog();
                    IsSaveed = frm1.IsSave;
                    break;
                case "2":
                    LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.LookDesignReservationSmallForm frm2 = new CameraControlBook.SmallForm.LookDesignReservationSmallForm();
                    frm2.OrdNumber = StrOrdNumber;
                    frm2.ShowDialog();
                    IsSaveed = frm2.IsSave;
                    break;
                case "3":
                    LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.TakePiecesReservationSmallForm frm3 = new CameraControlBook.SmallForm.TakePiecesReservationSmallForm();
                    frm3.OrdNumber = StrOrdNumber;
                    frm3.ShowDialog();
                    IsSaveed = frm3.IsSave;
                    break;
                case "4":
                    LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.WeddingReservationSmallForm frm4 = new CameraControlBook.SmallForm.WeddingReservationSmallForm();
                    frm4.OrdNumber = StrOrdNumber;
                    frm4.ShowDialog();
                    IsSaveed = frm4.IsSaveed;
                    break;
                case "5":
                    LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.SelectDressReservationSmallForm frm5 = new CameraControlBook.SmallForm.SelectDressReservationSmallForm();
                    frm5.OrdNumber = StrOrdNumber;
                    frm5.ShowDialog();
                    IsSaveed = frm5.IsSave;
                    break;
            }
            return IsSaveed;
        }
    }
}
#region 放弃
//namespace LYFZ
//{
//    public static class CameraControlBookEnum
//    {
//        /// 
//        /// 摄控安排流程
//        /// 
//        public enum EnumWorkPersonType
//        {
//            选礼服师,
//            摄影师,
//            摄影助理,
//            化妆师,
//            化妆助理,
//            引导师,
//            选片师,
//            看设计师,
//            取件师,
//            服务师
//        }
//        /// 
//        /// 摄控安排流程
//        /// 
//        public enum EnumUnityArrangeWorkType
//        {
//            拍照客人,
//            选片客人,
//            看版客人,
//            取件客人,
//            服务客人,
//            选礼服客人
//        }
//    }
//    public class CameraControlBookUnityArrangeWorkModel
//    {
//        private bool _IsDateTime;
//        /// 
//        /// 是否启用日期
//        /// 
//        public bool IsDateTime
//        {
//            get { return _IsDateTime; }
//            set { _IsDateTime = value; }
//        }
//        private string _StrDateTime;
//        /// 
//        /// 日期时间
//        /// 
//        public string StrDateTime
//        {
//            get { return _StrDateTime; }
//            set { _StrDateTime = value; }
//        }
//        private bool _IsBootDivisionName;
//        /// 
//        /// 是否启用引导师
//        /// 
//        public bool IsBootDivisionName
//        {
//            get { return _IsBootDivisionName; }
//            set { _IsBootDivisionName = value; }
//        }
//        private string _BootDivisionName;
//        /// 
//        /// 引导师
//        /// 
//        public string BootDivisionName
//        {
//            get { return _BootDivisionName; }
//            set { _BootDivisionName = value; }
//        }
//        private string _BootDivisionTag;
//        /// 
//        /// 引导师编号
//        /// 
//        public string BootDivisionTag
//        {
//            get { return _BootDivisionTag; }
//            set { _BootDivisionTag = value; }
//        }
//        private bool _IsClothingName;
//        /// 
//        /// 是否启用礼服师
//        /// 
//        public bool IsClothingName
//        {
//            get { return _IsClothingName; }
//            set { _IsClothingName = value; }
//        }
//        private string _ClothingName;
//        /// 
//        /// 礼服师
//        /// 
//        public string ClothingName
//        {
//            get { return _ClothingName; }
//            set { _ClothingName = value; }
//        }
//        private string _ClothingTag;
//        /// 
//        /// 礼服师编号
//        /// 
//        public string ClothingTag
//        {
//            get { return _ClothingTag; }
//            set { _ClothingTag = value; }
//        }
//        private bool _IsFilmSelectionName;
//        /// 
//        /// 是否启用选片师
//        /// 
//        public bool IsFilmSelectionName
//        {
//            get { return _IsFilmSelectionName; }
//            set { _IsFilmSelectionName = value; }
//        }
//        private string _FilmSelectionName;
//        /// 
//        /// 选片师
//        /// 
//        public string FilmSelectionName
//        {
//            get { return _FilmSelectionName; }
//            set { _FilmSelectionName = value; }
//        }
//        private string _FilmSelectionTag;
//        /// 
//        /// 选片师编号
//        /// 
//        public string FilmSelectionTag
//        {
//            get { return _FilmSelectionTag; }
//            set { _FilmSelectionTag = value; }
//        }
//        private bool _IsLookDesignName;
//        /// 
//        /// 是否启用看版师
//        /// 
//        public bool IsLookDesignName
//        {
//            get { return _IsLookDesignName; }
//            set { _IsLookDesignName = value; }
//        }
//        private string _LookDesignName;
//        /// 
//        /// 看版师
//        /// 
//        public string LookDesignName
//        {
//            get { return _LookDesignName; }
//            set { _LookDesignName = value; }
//        }
//        private string _LookDesignTag;
//        /// 
//        /// 看版师编号
//        /// 
//        public string LookDesignTag
//        {
//            get { return _LookDesignTag; }
//            set { _LookDesignTag = value; }
//        }
//        private bool _IsMakeupArtistName;
//        /// 
//        /// 是否启用化妆师
//        /// 
//        public bool IsMakeupArtistName
//        {
//            get { return _IsMakeupArtistName; }
//            set { _IsMakeupArtistName = value; }
//        }
//        private string _MakeupArtistName;
//        /// 
//        /// 化妆师
//        /// 
//        public string MakeupArtistName
//        {
//            get { return _MakeupArtistName; }
//            set { _MakeupArtistName = value; }
//        }
//        private string _MakeupArtistTag;
//        /// 
//        /// 化妆师编号
//        /// 
//        public string MakeupArtistTag
//        {
//            get { return _MakeupArtistTag; }
//            set { _MakeupArtistTag = value; }
//        }
//        private bool _IsMakeupAssistantName;
//        /// 
//        /// 是否启用化妆助理
//        /// 
//        public bool IsMakeupAssistantName
//        {
//            get { return _IsMakeupAssistantName; }
//            set { _IsMakeupAssistantName = value; }
//        }
//        private string _MakeupAssistantName;
//        /// 
//        /// 化妆助理
//        /// 
//        public string MakeupAssistantName
//        {
//            get { return _MakeupAssistantName; }
//            set { _MakeupAssistantName = value; }
//        }
//        private string _MakeupAssistantTag;
//        /// 
//        /// 化妆助理编号
//        /// 
//        public string MakeupAssistantTag
//        {
//            get { return _MakeupAssistantTag; }
//            set { _MakeupAssistantTag = value; }
//        }
//        private bool _IsPhotographerName;
//        /// 
//        /// 是否启用摄影师
//        /// 
//        public bool IsPhotographerName
//        {
//            get { return _IsPhotographerName; }
//            set { _IsPhotographerName = value; }
//        }
//        private string _PhotographerName;
//        /// 
//        /// 摄影师
//        /// 
//        public string PhotographerName
//        {
//            get { return _PhotographerName; }
//            set { _PhotographerName = value; }
//        }
//        private string _PhotographerTag;
//        /// 
//        /// 摄影师编号
//        /// 
//        public string PhotographerTag
//        {
//            get { return _PhotographerTag; }
//            set { _PhotographerTag = value; }
//        }
//        private bool _IsPhotographyAssistantName;
//        /// 
//        /// 是否启用摄影助理
//        /// 
//        public bool IsPhotographyAssistantName
//        {
//            get { return _IsPhotographyAssistantName; }
//            set { _IsPhotographyAssistantName = value; }
//        }
//        private string _PhotographyAssistantName;
//        /// 
//        /// 摄影助理
//        /// 
//        public string PhotographyAssistantName
//        {
//            get { return _PhotographyAssistantName; }
//            set { _PhotographyAssistantName = value; }
//        }
//        private string _PhotographyAssistantTag;
//        /// 
//        /// 摄影助理编号
//        /// 
//        public string PhotographyAssistantTag
//        {
//            get { return _PhotographyAssistantTag; }
//            set { _PhotographyAssistantTag = value; }
//        }
//        private bool _IsPickupName;
//        /// 
//        /// 是否启用取件师
//        /// 
//        public bool IsPickupName
//        {
//            get { return _IsPickupName; }
//            set { _IsPickupName = value; }
//        }
//        private string _PickupName;
//        /// 
//        /// 取件师
//        /// 
//        public string PickupName
//        {
//            get { return _PickupName; }
//            set { _PickupName = value; }
//        }
//        private string _PickupTag;
//        /// 
//        /// 取件师编号
//        /// 
//        public string PickupTag
//        {
//            get { return _PickupTag; }
//            set { _PickupTag = value; }
//        }
//        private bool _IsServiceName1;
//        /// 
//        /// 是否启用服务人员1
//        /// 
//        public bool IsServiceName1
//        {
//            get { return _IsServiceName1; }
//            set { _IsServiceName1 = value; }
//        }
//        private string _ServiceName1;
//        /// 
//        /// 服务人员1
//        /// 
//        public string ServiceName1
//        {
//            get { return _ServiceName1; }
//            set { _ServiceName1 = value; }
//        }
//        private string _ServiceTag1;
//        /// 
//        /// 服务人员编号1
//        /// 
//        public string ServiceTag1
//        {
//            get { return _ServiceTag1; }
//            set { _ServiceTag1 = value; }
//        }
//        private bool _IsServiceName2;
//        /// 
//        /// 是否启用服务人员2
//        /// 
//        public bool IsServiceName2
//        {
//            get { return _IsServiceName2; }
//            set { _IsServiceName2 = value; }
//        }
//        private string _ServiceName2;
//        /// 
//        /// 服务人员2
//        /// 
//        public string ServiceName2
//        {
//            get { return _ServiceName2; }
//            set { _ServiceName2 = value; }
//        }
//        private string _ServiceTag2;
//        /// 
//        /// 服务人员编号2
//        /// 
//        public string ServiceTag2
//        {
//            get { return _ServiceTag2; }
//            set { _ServiceTag2 = value; }
//        }
//    }
//}
#endregion