Ejemplo n.º 1
0
        private void SetData(StockInReturnData data)
        {
            if (data.STATUS != Constz.Requisition.Status.Waiting.Code)
            {
                this.btnSearch.Visible = false;
                this.btnSubmit.Visible = false;
                this.txtInvoiceCode.ReadOnly = true;
                this.txtInvoiceCode.Enabled = false;
                Appz.FormatDataGridView(this.grvStockIn, false, false, true);
            }
            else
                Appz.FormatDataGridView(this.grvStockIn, false, true, false);

            this.txtInvoiceCode.Text = data.INVOICECODE;
            this.txtOldInvoiceCode.Text = data.INVOICECODE;
            this.txtLOID.Text = data.LOID.ToString();
            this.txtRefLOID.Text = data.REFLOID.ToString();
            this.txtReceiver.Text = data.RECEIVER.ToString();
            this.txtSender.Text = data.SENDER.ToString();
            this.txtStatus.Text = data.STATUS;
            this.txtCode.Text = data.CODE;
            this.txtReceiveDate.Text = data.RECEIVEDATE.ToString(Constz.DateFormat);
            this.dtpReceiveDate.Value = data.RECEIVEDATE;
            this.txtCreateBy.Text = data.CREATEBY;
            this.txtTotal.Text = data.TOTAL.ToString(Constz.DblFormat);
            this.txtRemark.Text = data.REMARK;
            this.txtReason.Text = data.REASON;
            this.txtCustomerCode.Text = data.CUSTOMERCODE;
            this.txtCustomerName.Text = data.CUSTOMERNAME;
            if (data.INVOICEDATE.Year == 1)
                this.txtInvoiceDate.Text = "";
            else
                this.txtInvoiceDate.Text = data.INVOICEDATE.ToString(Constz.DateFormat);
            this.grvStockIn.DataSource = data.ITEM;
            SetDatagrid();
        }
Ejemplo n.º 2
0
 public StockInReturnData GetInvoiceData(string requisitionCode)
 {
     StockInReturnData data = new StockInReturnData();
     SearchObj.GetDataByCODE(requisitionCode, null);
     data.RECEIVER = SearchObj.WAREHOUSE;
     data.REFLOID = SearchObj.REQUISITION;
     data.SENDER = SearchObj.WAREHOUSE;
     data.CUSTOMERCODE = SearchObj.CUSTOMERCODE;
     data.CUSTOMERNAME = SearchObj.CUSTOMERNAME;
     data.INVOICECODE = SearchObj.INVOICECODE;
     data.INVOICEDATE = SearchObj.INVOICEDATE;
     DataTable dt = SearchObj.GetInvoiceProductList(SearchObj.REQUISITION);
     int i = 1;
     foreach (DataRow dRow in dt.Rows)
     {
         dRow["ORDERNO"] = i;
         i += 1;
     }
     data.ITEM = dt;
     return data;
 }
Ejemplo n.º 3
0
 private void SetStockOutData(StockInReturnData data)
 {
     this.txtInvoiceCode.Text = data.INVOICECODE;
     this.txtOldInvoiceCode.Text = data.INVOICECODE;
     this.txtRefLOID.Text = data.REFLOID.ToString();
     this.txtReceiver.Text = data.RECEIVER.ToString();
     this.txtSender.Text = data.SENDER.ToString();
     this.txtCustomerCode.Text = data.CUSTOMERCODE;
     this.txtCustomerName.Text = data.CUSTOMERNAME;
     if (data.INVOICEDATE.Year == 1)
         this.txtInvoiceDate.Text = "";
     else
         this.txtInvoiceDate.Text = data.INVOICEDATE.ToString(Constz.DateFormat);
     this.grvStockIn.DataSource = data.ITEM;
     SetDatagrid();
     Calculate(data.CUSTOMERCODE);
 }
Ejemplo n.º 4
0
 public StockInReturnData GetStockInData(double stockIn)
 {
     StockInReturnData data = new StockInReturnData();
     ViewObj.GetDataByLOID(stockIn, null);
     data.CODE = ViewObj.CODE;
     data.CREATEBY = ViewObj.CREATEBY;
     data.TOTAL = ViewObj.GRANDTOT;
     data.LOID = ViewObj.LOID;
     data.RECEIVEDATE = ViewObj.RECEIVEDATE;
     data.RECEIVER = ViewObj.RECEIVER;
     data.REFLOID = ViewObj.REFLOID;
     data.REMARK = ViewObj.REMARK;
     data.SENDER = ViewObj.SENDER;
     data.STATUS = ViewObj.STATUS;
     data.CUSTOMERCODE = ViewObj.CUSTOMERCODE;
     data.CUSTOMERNAME = ViewObj.CUSTOMERNAME;
     data.INVOICECODE = ViewObj.INVOICECODE;
     data.INVOICEDATE = ViewObj.INVOICEDATE;
     data.REASON = ViewObj.REASON;
     DataTable dt = SearchObj.GetStockInProductList(stockIn);
     int i = 1;
     foreach (DataRow dRow in dt.Rows)
     {
         dRow["ORDERNO"] = i;
         i += 1;
     }
     data.ITEM = dt;
     return data;
 }