//Update Disburse Form
        public void UpdateDisburseQty(string loginUserName, string deptcode, List <WCFDisburse> disburseList)
        {
            int    ii       = 0;
            string itemCode = null;

            string[] itemCodeAry             = new string[disburseList.Count];
            int[]    qtyAry                  = new int[disburseList.Count];
            Dictionary <string, int> dicList = new Dictionary <string, int>();

            foreach (WCFDisburse eachObj in disburseList)
            {
                string itemName = eachObj.ItemName;
                //itemCode = changeItemNametoCode(itemName);
                itemCode        = eachObj.ItemCode;
                itemCodeAry[ii] = itemCode;

                int quantity = Int16.Parse(eachObj.DisbursedQty);
                qtyAry[ii] = quantity;

                //Add to dictionary
                dicList.Add(itemCodeAry[ii], qtyAry[ii]);

                ii++;
            }

            //Pass data to Mobile confirmation
            MobileConfirmation.SignOffDisbursement(loginUserName, deptcode, dicList);
        }
        //Update Retrieve Form
        public void UpdateRetrieveQty(List <WCFRetieve> retrieveList, string loginUserName)
        {
            int    ii       = 0;
            string itemCode = null;

            string[] itemCodeAry             = new string[retrieveList.Count];
            int[]    qtyAry                  = new int[retrieveList.Count];
            Dictionary <string, int> dicList = new Dictionary <string, int>();

            foreach (WCFRetieve eachObj in retrieveList)
            {
                string itemName = eachObj.ItemDes;
                //itemCode = changeItemNametoCode(itemName);
                itemCode        = eachObj.ItemCode;
                itemCodeAry[ii] = itemCode;

                int quantity = Int16.Parse(eachObj.RetrieveQty);
                qtyAry[ii] = quantity;

                //Add to dictionary
                dicList.Add(itemCodeAry[ii], qtyAry[ii]);

                ii++;
            }

            //Pass data to Mobile confirmation

            MobileConfirmation.ConfirmRetrievalFromWarehouse(loginUserName, dicList);
        }
        protected void btnPushMe_Click(object sender, EventArgs e)
        {
            string user = "******";

            Dictionary <string, int> items = new Dictionary <string, int>();

            //items.Add("P042", 9);
            //items.Add("P030", 15);
            items.Add("P032", 4);

            MobileConfirmation.ConfirmRetrievalFromWarehouse(user, items);
        }
 public List <WCFDisburse> GetDeptDetail(string user, string deptname)
 {
     return(MobileConfirmation.getAllPossibleSignOffsForUserForDept(user, deptname));
 }
Пример #5
0
 //By Yin
 public List <WCFRetieve> wgetEachItemQty(string currentUser)
 {
     return(MobileConfirmation.GetAllPossibleRetrievalsForUser(currentUser));
 }