/// <summary>
        /// 入库单查询
        /// </summary>
        /// <param name="paramWindowParameters"></param>
        /// <param name="paramCustomeSelectionMode">选择模式,默认单选</param>
        public FrmStockInBillQuery(Dictionary <string, object> paramWindowParameters, CustomEnums.CustomeSelectionMode paramCustomeSelectionMode = CustomEnums.CustomeSelectionMode.Single)
        {
            ListSelectionMode = paramCustomeSelectionMode;
            _viewParameters   = paramWindowParameters;

            InitializeComponent();
        }
        /// <summary>
        /// 查询零库存
        /// </summary>
        /// <param name="paramWindowParameters"></param>
        /// <param name="paramCustomeSelectionMode">选择模式,默认单选</param>
        public FrmSelectAutoPartsZeroInventoryWindow(Dictionary <string, object> paramWindowParameters, CustomEnums.CustomeSelectionMode paramCustomeSelectionMode = CustomEnums.CustomeSelectionMode.Single)
        {
            ListSelectionMode = paramCustomeSelectionMode;
            _viewParameters   = paramWindowParameters;

            InitializeComponent();
        }
        /// <summary>
        /// 仓位查询
        /// </summary>
        /// <param name="paramSelectedValuePropertyName">选中项的值对应数据源中的属性名</param>
        /// <param name="paramSelectedTextPropertyName">选中项的描述对应数据源中的属性名</param>
        /// <param name="paramSelectedValue">默认选中项的值</param>
        /// <param name="paramCustomeSelectionMode">选择模式,默认单选</param>
        /// <param name="paramItemSelectedItemParentValue">默认选中项的父级值</param>
        public FrmWarehouseBinQuery(string paramSelectedValuePropertyName,
                                    string paramSelectedTextPropertyName = null,
                                    string paramSelectedValue            = null,
                                    CustomEnums.CustomeSelectionMode paramCustomeSelectionMode = CustomEnums.CustomeSelectionMode.Single,
                                    string paramItemSelectedItemParentValue = null)
        {
            if (string.IsNullOrEmpty(paramSelectedValuePropertyName))
            {
                MessageBoxs.Show(Trans.COM, this.ToString(), MsgHelp.GetMsg(MsgCode.W_0021, new object[] { MsgParam.paramSelectedValuePropertyName }), MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            SelectedValuePropertyName = paramSelectedValuePropertyName;
            SelectedValue             = paramSelectedValue;

            //paramSelectedTextPropertyName为空时,用paramSelectedValuePropertyName代替
            if (string.IsNullOrEmpty(paramSelectedTextPropertyName))
            {
                SelectedTextPropertyName = paramSelectedValuePropertyName;
                SelectedText             = paramSelectedValue;
            }
            else
            {
                SelectedTextPropertyName = paramSelectedTextPropertyName;
            }

            ListSelectionMode       = paramCustomeSelectionMode;
            SelectedItemParentValue = paramItemSelectedItemParentValue;

            InitializeComponent();
        }
Example #4
0
        /// <summary>
        /// 用户查询
        /// </summary>
        /// <param name="paramCustomeSelectionMode">选择模式,默认单选</param>
        /// <param name="paramItemSelectedItemParentValue">默认选中项的父级值</param>
        /// <param name="paramItemSelectedItemParentText">默认选中项的父级描述</param>
        public FrmUserQuery(CustomEnums.CustomeSelectionMode paramCustomeSelectionMode = CustomEnums.CustomeSelectionMode.Single, string paramItemSelectedItemParentValue = null, string paramItemSelectedItemParentText = null)
        {
            ListSelectionMode       = paramCustomeSelectionMode;
            SelectedItemParentValue = paramItemSelectedItemParentValue;
            SelectedItemParentText  = paramItemSelectedItemParentText;

            InitializeComponent();
        }
        /// <summary>
        /// 领料查询
        /// </summary>
        /// <param name="paramCustomeSelectionMode">选择模式,默认单选</param>
        public FrmPickPartsQuery(CustomEnums.CustomeSelectionMode paramCustomeSelectionMode = CustomEnums.CustomeSelectionMode.Single)
        {
            ListSelectionMode = paramCustomeSelectionMode;

            InitializeComponent();

            this.Size = new Size(SystemConfigInfo.MainWindowWidth - 100, SystemConfigInfo.MainWindowHeight - 50);
        }
        /// <summary>
        /// 库存查询
        /// </summary>
        /// <param name="paramWindowParameters">传入的Dictionary参数</param>
        /// <param name="paramCustomeSelectionMode">选择模式,默认单选</param>
        public FrmInventoryToShareQuery(Dictionary <string, object> paramWindowParameters, CustomEnums.CustomeSelectionMode paramCustomeSelectionMode = CustomEnums.CustomeSelectionMode.Single)
        {
            ListSelectionMode = paramCustomeSelectionMode;
            _viewParameters   = paramWindowParameters;

            InitializeComponent();

            this.Size = new Size(SystemConfigInfo.MainWindowWidth - 100, SystemConfigInfo.MainWindowHeight - 50);
        }
        /// <summary>
        /// 库存查询
        /// </summary>
        /// <param name="paramCustomeSelectionMode">选择模式,默认单选</param>
        /// <param name="paramItemSelectedItemParentValue">默认选中项的父级值</param>
        /// <param name="paramItemSelectedItemParentText">默认选中项的父级描述</param>
        public FrmInventoryToShareQuery(CustomEnums.CustomeSelectionMode paramCustomeSelectionMode = CustomEnums.CustomeSelectionMode.Single, string paramItemSelectedItemParentValue = null, string paramItemSelectedItemParentText = null)
        {
            ListSelectionMode       = paramCustomeSelectionMode;
            SelectedItemParentValue = paramItemSelectedItemParentValue;
            SelectedItemParentText  = paramItemSelectedItemParentText;

            InitializeComponent();

            this.Size = new Size(SystemConfigInfo.MainWindowWidth - 100, SystemConfigInfo.MainWindowHeight - 50);
        }
        /// <summary>
        /// 入库单查询
        /// </summary>
        /// <param name="paramCustomeSelectionMode">选择模式,默认单选</param>
        public FrmStockInBillQuery(CustomEnums.CustomeSelectionMode paramCustomeSelectionMode = CustomEnums.CustomeSelectionMode.Single)
        {
            ListSelectionMode = paramCustomeSelectionMode;

            InitializeComponent();
        }
        /// <summary>
        /// 采购订单查询
        /// </summary>
        /// <param name="paramCustomeSelectionMode">选择模式,默认单选</param>
        public FrmPurchaseOrderQuery(CustomEnums.CustomeSelectionMode paramCustomeSelectionMode = CustomEnums.CustomeSelectionMode.Single)
        {
            ListSelectionMode = paramCustomeSelectionMode;

            InitializeComponent();
        }
        /// <summary>
        /// 配件档案查询
        /// </summary>
        /// <param name="paramCustomeSelectionMode">选择模式,默认单选</param>
        public FrmAutoPartsArchiveQuery(CustomEnums.CustomeSelectionMode paramCustomeSelectionMode = CustomEnums.CustomeSelectionMode.Single)
        {
            ListSelectionMode = paramCustomeSelectionMode;

            InitializeComponent();
        }
 /// <summary>
 /// 汽修商户组织查询
 /// </summary>
 /// <param name="paramCustomerType">客户类型</param>
 /// <param name="paramCustomeSelectionMode">选择模式,默认单选</param>
 public FrmAutoFactoryOrgQuery(string paramCustomerType = null, CustomEnums.CustomeSelectionMode paramCustomeSelectionMode = CustomEnums.CustomeSelectionMode.Single)
 {
     ListSelectionMode = paramCustomeSelectionMode;
     InitializeComponent();
 }
        /// <summary>
        /// 查询零库存
        /// </summary>
        /// <param name="paramCustomeSelectionMode">选择模式,默认单选</param>
        public FrmSelectAutoPartsZeroInventoryWindow(CustomEnums.CustomeSelectionMode paramCustomeSelectionMode = CustomEnums.CustomeSelectionMode.Single)
        {
            ListSelectionMode = paramCustomeSelectionMode;

            InitializeComponent();
        }