Example #1
0
        public void MakeVoucher()
        {
            newVoucherVisibility = "Visible";
            nextBtnEnabled       = false;
            List <char> con          = new List <char>();
            string      conditionNew = "";

            for (int i = condition.Length - 1; i > 0; i--)
            {
                if (condition[i] != ' ')
                {
                    con.Add(condition[i]);
                }
                else
                {
                    break;
                }
            }
            for (int j = con.Count - 1; j >= 0; j--)
            {
                conditionNew = conditionNew + con[j];
            }
            conditionPrv  = conditionNew;
            returnDatePrv = DateTime.Now.ToString("d/m/yyyy");
            int next = maxReturnVoucher + 1;

            returnIDPrv    = "" + next;
            contructorPrv  = contructorName.contructorName;
            wareHousePrv   = wareHouseName.wareHouseName;
            workOrderNoPrv = workOrderNo.workOrderNo;
            causePrv       = cause;
            List <char> t       = new List <char>();
            string      typeNew = "";

            for (int i = type.Length - 1; i > 0; i--)
            {
                if (type[i] != ' ')
                {
                    t.Add(type[i]);
                }
                else
                {
                    break;
                }
            }
            for (int j = t.Count - 1; j >= 0; j--)
            {
                typeNew = typeNew + t[j];
            }
            returnTypePrv      = typeNew;
            makeVoucherEnabled = false;
            ShowingVoucher.Clear();
            EditVisibility = "Visible";
            printSrc       = "/Asset/pending.png";
            printTxt       = "Pending";
        }
Example #2
0
        public void ShowNewVoucher()
        {
            newVoucherVisibility = "Visible";
            List <char> con          = new List <char>();
            string      conditionNew = "";

            for (int i = condition.Length - 1; i > 0; i--)
            {
                if (condition[i] != ' ')
                {
                    con.Add(condition[i]);
                }
                else
                {
                    break;
                }
            }
            for (int j = con.Count - 1; j >= 0; j--)
            {
                conditionNew = conditionNew + con[j];
            }
            makeVoucherEnabled = false;
            rrDatePrv          = DateTime.Now.ToString("dd/M/yyyy");
            rrNumberPrv        = "" + nextTickedNumber;
            allocDatePrv       = "//";
            woacNoPrv          = workOrderNo.workOrderNo;
            dlvrToPrv          = dlvrTotxbx;
            dlvrTotxbx         = "";
            chkedByPrv         = chkedBytxbx;
            chkedBytxbx        = "";
            conditionPrv       = conditionNew;
            challanPrv         = challantxbx;
            challantxbx        = "";
            supplierPrv        = supplierName.supplierName;
            allocRqPrv         = allocreqNumbertxbx;
            allocreqNumbertxbx = "";
            warehousePrv       = wareHouseName.wareHouseName;
            contructorPrv      = contructorName.contructorName;
            ShowingVoucher.Clear();
            printSrc           = "/Asset/pending.png";
            printlbl           = "Pending";
            isEditable         = "Visible";
            makeVoucherEnabled = false;
            nextBtnEnabled     = false;
            AddItemEnabled     = false;
        }