Example #1
0
        private void bt_query_Click(object sender, EventArgs e)
        {
            PDM_MATERAIL t_materail = new PDM_MATERAIL();

            t_materail.MATERIALNO   = this.tb_materailNo.Text;
            t_materail.MODELTYPE    = this.tb_modelType.Text;
            t_materail.MATERIALSRC  = this.tb_materailSrc.Text;
            t_materail.MATERIALTYPE = this.tb_materailType.Text;
            t_materail.MEMO_ZH      = this.tb_memoZh.Text;
            t_materail.MEMO_EN      = this.tb_memoEn.Text;
            t_materail.CREATER      = this.tb_creater.Text;
            t_materail.RAWMATERIAL  = this.tb_rawMaterail.Text.Trim();
            m_dt = m_materailService.GetMaterailList(t_materail, this.AdvanceQueryString);
            this.DialogResult = DialogResult.OK;
        }
Example #2
0
        //查询按钮操作
        private void bt_query_Click(object sender, EventArgs e)
        {
            /*Condition condition = PDM_MATERAIL.Create().CreateCondition();
             *
             * if (!string.IsNullOrEmpty(this.tb_materailNo.Text))
             * {
             *  condition.AddElement("MATERIALNO", this.tb_materailNo.Text, ElementType.Match);
             * }
             * if (!string.IsNullOrEmpty(this.tb_modelType.Text))
             * {
             *  condition.AddElement("MODELTYPE", this.tb_modelType.Text);
             * }
             * if (!string.IsNullOrEmpty(this.tb_materailSrc.Text))
             * {
             *  condition.AddElement("MATERIALSRC", tb_materailSrc.Text);
             * }
             * if (!string.IsNullOrEmpty(this.tb_materailType.Text))
             * {
             *  condition.AddElement("MATERIALTYPE", tb_materailType.Text);
             * }
             * if (!string.IsNullOrEmpty(this.tb_memoEn.Text))
             * {
             *  condition.AddElement("MEMO_ZH", this.tb_memoEn.Text, ElementType.Match);
             * }
             * if (!string.IsNullOrEmpty(this.tb_memoEn.Text))
             * {
             *  condition.AddElement("MEMO_EN", this.tb_memoEn.Text);
             * }
             * if (!string.IsNullOrEmpty(this.tb_creater.Text))
             * {
             *  condition.AddElement("CREATER", this.tb_creater.Text);
             * }*/

            PDM_MATERAIL t_materail = new PDM_MATERAIL();

            t_materail.MATERIALNO   = this.tb_materailNo.Text;
            t_materail.MODELTYPE    = this.tb_modelType.Text;
            t_materail.MATERIALSRC  = this.tb_materailSrc.Text;
            t_materail.MATERIALTYPE = this.tb_materailType.Text;
            t_materail.MEMO_ZH      = this.tb_memoZh.Text;
            t_materail.MEMO_EN      = this.tb_memoEn.Text;
            t_materail.CREATER      = this.tb_creater.Text;
            t_materail.RAWMATERIAL  = this.tb_rawMaterail.Text.Trim();
            m_dt = m_materailService.GetMaterailList(t_materail);
            this.DialogResult = DialogResult.OK;
        }
Example #3
0
 internal void InitGridList()
 {
     this.dgv_MaterailList.DataSource  = m_IMaterailService.GetMaterailList();
     this.ucPaging1.SourceDataGridView = this.dgv_MaterailList;
 }