Пример #1
0
        /// <summary>
        /// 窗体载入
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UserControlDepotForPersonnel_Load(object sender, EventArgs e)
        {
            FaceAuthoritySetting.SetVisibly(toolStrip1, m_authorityFlag);
            m_dtNodeTag.Columns.Add("String");

            m_findDepotType = m_serverDepotTypeForPersonnel.GetDepotTypeBill();
            GlobalObject.GeneralFunction.LoadTreeViewDt(treeView1,
                                                        m_serverDepotTypeForPersonnel.ChangeDataTable(
                                                            GlobalObject.GeneralFunction.ConvertToDataTable <S_Depot>(m_findDepotType)),
                                                        "DepotName", "DepotCode", "RootSign", "RootSign = 'Root'");
            RefreshControl();
        }
Пример #2
0
        public 类别选择窗体()
        {
            InitializeComponent();

            m_dtNodeTag.Columns.Add("String");

            m_findDepotType = m_serverDepotTypeForPersonnel.GetDepotTypeBill();

            GlobalObject.GeneralFunction.LoadTreeViewDt(treeView1,
                                                        m_serverDepotTypeForPersonnel.ChangeDataTable(GlobalObject.GeneralFunction.ConvertToDataTable <S_Depot>(m_findDepotType)),
                                                        "DepotName", "DepotCode", "RootSign", "RootSign = 'Root'");

            treeView1.ExpandAll();
        }
        /// <summary>
        /// 窗体载入
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void FormFindGoods_Load(object sender, EventArgs e)
        {
            if (m_StoreServer.GetAllStore(null, false, out m_findAllSock, out m_err))
            {
                dateStore = GlobalObject.GeneralFunction.ConvertToDataTable <View_S_Stock>(m_findAllSock);
                dataGridView1.DataSource = dateStore;
            }


            m_dataLocalizer = new UserControlDataLocalizer(dataGridView1, this.Name, UniversalFunction.SelectHideFields(this.Name, dataGridView1.Name, BasicInfo.LoginID));
            panel3.Controls.Add(m_dataLocalizer);
            m_dataLocalizer.Dock = DockStyle.Bottom;

            m_findDepotType = m_DepotTypeForPersonnel.GetDepotTypeBill();
            GlobalObject.GeneralFunction.LoadTreeViewDt(treeView1,
                                                        m_DepotTypeForPersonnel.ChangeDataTable(GlobalObject.GeneralFunction.ConvertToDataTable <S_Depot>(m_findDepotType)),
                                                        "DepotName", "DepotCode", "RootSign", "RootSign = 'Root'");
        }