Example #1
0
        public frmEditQuotation(Quotation quotation)
        {
            InitializeComponent();
            IInitColumn quotationDetailColumn = new QuotationDetailColumn(gridView1, checkBoxCombobox1);

            gridUtility = new GridUtility(gridControl1, false, false, 35, colDescription);
            gridUtility.ColProductPicture       = colPhoto;
            gridUtility.ColProductPicturePath   = colImgPath;
            gridUtility.ColDimensionPicture     = colDimension;
            gridUtility.ColDimensionPicturePath = colDimensionPath;
            List <GridColumn> lstDefinedColumn = new List <GridColumn>()
            {
                colDimension, colDonvi
            };

            FormUtility.FormatForm(this);
            lblNotify1.Text     = "";
            m_Company           = null;
            m_Quotation         = quotation;
            m_Company           = m_Quotation.Company;
            gridView1.RowHeight = 150;
            isEdited            = false;
            this.checkBoxCombobox1.CheckStateChanged += new System.EventHandler(this.checkComboBox1_CheckStateChanged);
            quotationDetailColumn.InitColumn(lstDefinedColumn);
        }
Example #2
0
        public frmEditPO(Po po)
        {
            InitializeComponent();
            IInitColumn       quotationDetailColumn = new QuotationDetailColumn(gridView1, checkBoxCombobox1);
            List <GridColumn> lstDefinedColumn      = new List <GridColumn>()
            {
                colDimension, colDonvi
            };

            gridUtility = new GridUtility(gridControl1, false, false, 35, colDescription);
            gridUtility.ColProductPicture       = colPhoto;
            gridUtility.ColProductPicturePath   = colImgPath;
            gridUtility.ColDimensionPicture     = colDimension;
            gridUtility.ColDimensionPicturePath = colDimensionPath;
            FormUtility.FormatForm(this);
            lblNotify1.Text     = "";
            m_Company           = po.Company;
            m_Po                = po;
            gridView1.RowHeight = 150;
            isEdited            = false;
            quotationDetailColumn.InitColumn(lstDefinedColumn);
        }