Exemplo n.º 1
0
        private void DeleButton_Click(object sender, EventArgs e)//删除
        {
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            if (dr != null)
            {
                if (dr["状态"].ToInt() == 1 || dr["状态"].ToInt() == 2)
                {
                    ActionLoad ac = new ActionLoad();
                    ac.Action = "LKWZSVR.lkeq.EQPurchase.EQPurchasePlanSvr";
                    ac.Sql    = "EQPurchasePlanDelete";
                    ac.Add("PLANID", dr["采购计划ID"].ToString());
                    ac.ServiceLoad += new YtClient.data.events.LoadEventHandle(ac_ServiceLoad);
                    ac.Post();
                    Search_button_Click(null, null);
                    // WJs.alert("删除采购计划id=" + dr["采购计划id"].ToString() + "成功!");
                }
                if (dr["状态"].ToInt() == 0)
                {
                    WJs.alert("该计划已删除,不能再次删除!");
                }

                if (dr["状态"].ToInt() == 6)
                {
                    WJs.alert("该计划已审核,不能删除!");
                }
            }
            else
            {
                WJs.alert("请选择要删除的采购计划信息!");
            }
        }
Exemplo n.º 2
0
        private void toolStripButton_Del_Click(object sender, EventArgs e)
        {
            DataRow row = this.dataGView1.GetRowData();

            if (row != null)
            {
                if (WJs.confirmFb("确定要删除选择的盘点详细信息吗?"))
                {
                    this.dataGView1.SelectedRows[0].Cells["Column9"].Value = null;
                    this.dataGView1.SelectedRows[0].Cells["Column2"].Value = this.dataGView1.SelectedRows[0].Cells["Column12"].Value;

                    if (!isAdd && r["PDID"] != null)
                    {
                        ActionLoad ac = ActionLoad.Conn();
                        ac.Action = "LKWZSVR.lkeq.EQWareManag.EQPanDianSvr";
                        ac.Sql    = "DelEQPanDianDetailInfo";
                        ac.Add("PDID", r["PDID"].ToString());
                        ac.Add("ROWNO", Convert.ToDecimal(row["ROWNO"]));
                        ac.Add("CHOSCODE", His.his.Choscode);
                        ac.ServiceLoad    += new YtClient.data.events.LoadEventHandle(ac_ServiceDetailDeleteLoad);
                        ac.ServiceFaiLoad += new YtClient.data.events.LoadFaiEventHandle(ac_ServiceFaiLoad);
                        ac.Post();
                    }
                }
            }
            else
            {
                WJs.alert("请选择要删除的盘点信息");
            }
        }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            SqlStr sqls = SqlStr.newSql();//进行过滤的条件

            if (this.selTextInpt1.Value == null || this.selTextInpt1.Value.Trim() == "")
            {
                WJs.alert("请选择一个科室!");
                selTextInpt1.Focus();
                return;
            }
            DataRow dr1 = EQKind_ytTreeView.getSelectRow();

            if (EQKind_ytTreeView.SelectedNode != EQKind_ytTreeView.Nodes[0])
            {
                sqls.Add(" AND EQID IN (SELECT EQID FROM LKEQ.DICTEQ WHERE KINDCODE= " + dr1["KINDCODE"].ToString() + ")");
            }

            if (this.dateTimePicker1.Value.CompareTo(this.dateTimePicker2.Value) > 0)
            {
                WJs.alert("起始日期必须小于末尾日期!");
                return;
            }
            //select * from LKEQ.EQCARDREC WHERE  CHOSCODE =? AND DEPTID=? [Condition] AND OUTDATE&gt;? AND OUTDATE &lt;?
            this.dataGView1.reLoad(new object[] { His.his.Choscode, this.selTextInpt1.Value, dateTimePicker1.Value, dateTimePicker2.Value }, sqls);
            this.dataGView1.setFocus(0, 1);
            dataGView1_SelectionChanged(null, null);
        }
Exemplo n.º 4
0
 private void cancel_toolStripButton_Click(object sender, EventArgs e)
 {
     if (WJs.confirm("是否放弃保存,暂存数据将清空!"))
     {
         InitInWare();
     }
 }
Exemplo n.º 5
0
        private void Enable_toolStripButton_Click(object sender, EventArgs e)
        {
            //针对启用
            DataRow dr = this.ytTreeView1.getSelectRow();

            if (dr != null)
            {
                if (dr["IFUSE"].ToString() == "0")
                {
                    if (WJs.confirmFb("您确定要启用选择的统计类别信息吗?"))
                    {
                        ActionLoad ac = ActionLoad.Conn();
                        ac.Action = "LKWZSVR.lkeq.JiChuDictionary.EQCountKindSvr";
                        ac.Sql    = "QiYong";
                        ac.Add("IFUSE", "1");
                        ac.Add("CHOSCODE", His.his.Choscode.ToString());
                        ac.Add("COUNTCODE", dr["COUNTCODE"]);
                        ac.ServiceLoad += new YtClient.data.events.LoadEventHandle(ac_ServiceLoad);
                        ac.Post();
                    }
                }
                else
                {
                    WJs.alert("该统计类别信息已经启用了!");
                }
            }
            else
            {
                WJs.alert("请选择要启用的统计类别信息!");
            }
        }
Exemplo n.º 6
0
        private void toolStripButton6_Click(object sender, EventArgs e)//启用
        {
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            if (dr != null)
            {
                if (dr["医疗机构编码"].ToString() != His.his.Choscode)
                {
                    WJs.alert("只能启用属于本医疗机构的厂商信息!");
                }
                else if (WJs.confirmFb("是否启用?"))
                {
                    rowid = this.dataGView1.CurrentRow.Index;
                    ActionLoad ac = ActionLoad.Conn();
                    ac.Action = "LKWZSVR.lkeq.JiChuDictionary.EQSupplySvr";
                    ac.Sql    = "StartWZSupplyInfo";
                    ac.Add("SUPPLYID", dr["厂商ID"].ToInt());
                    ac.Add("CHOSCODE", His.his.Choscode);
                    ac.ServiceLoad += new YtClient.data.events.LoadEventHandle(ac_ServiceLoad);
                    ac.Post();
                }
            }
            else
            {
                WJs.alert("请选择要停用的厂商信息");
            }
        }
Exemplo n.º 7
0
        void ac_ServiceLoad_SHTG(object sender, YtClient.data.events.LoadEvent e)
        {
            WJs.alert(e.Msg.Msg);

            Main.Reload(3);
            this.Close();
        }
Exemplo n.º 8
0
 private void del_toolStrip_Click(object sender, EventArgs e)
 {
     if (dataGView1.CurrentRow == null)
     {
         WJs.alert("请选择要删除的设备领用信息!");
     }
     if (isFlag == 2)
     {
         dataGView1.Rows.Remove(dataGView1.CurrentRow);
     }
     if (isFlag == 1)
     {
         if (dataGView1.CurrentRow.Cells["Liushuihao_Column"].Value.ToString() != "" && dataGView1.CurrentRow.Cells["Liushuihao_Column"].Value != null)
         {
             if (WJs.confirm("您确定要删除选中的设备领用信息?针对原始数据的删除时不可恢复的!"))
             {
                 if (LData.Exe("DeleteOutDetailInfoInEdit", null, new object[] { this.dataGView1.CurrentRow.Cells["Liushuihao_Column"].Value, His.his.Choscode }) == "")
                 {
                     WJs.alert("删除信息失败!");
                     return;
                 }
                 dataGView1.Rows.Remove(dataGView1.CurrentRow);
             }
         }
         else
         {
             dataGView1.Rows.Remove(dataGView1.CurrentRow);
         }
     }
     this.TotalMoney_textBox1.Text = this.dataGView1.Sum("金额").ToString();
 }
Exemplo n.º 9
0
        private void dataGView1_CellEnter(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == SheBeiMingChen.Index)
            {
                if (isCanFKC == "0")
                {
                    this.dataGView1.addSql("SelptInLingYong1", "设备名称", "", this.ware_selTextInpt.Value + "|" + His.his.Choscode + "|{key}|{key}|{key}|{key}");
                }
                else
                {
                    this.dataGView1.addSql("SelptInLingYong2", "设备名称", "", this.ware_selTextInpt.Value + "|" + His.his.Choscode + "|{key}|{key}|{key}|{key}");
                }
            }

            if (e.ColumnIndex == KuCunLiuShui_Column.Index)
            {
                if (this.dataGView1.Rows[e.RowIndex].Cells["SheBeiMingChen"].Value != null)
                {
                    this.dataGView1.addSql("DGVInfoBindInLingYong", "库存流水号", "", this.ware_selTextInpt.Value + "|" + dataGView1.Rows[e.RowIndex].Cells["EqIdName_Column"].Value + "|" + His.his.Choscode + "|{key}|{key}");
                }
                else
                {
                    WJs.alert("请先选择出库设备名称,请在设备名称内键入空格后选择!");
                }
            }

            if (e.ColumnIndex == shuliang_Column.Index)
            {
                if (this.dataGView1.Rows[e.RowIndex].Cells["SheBeiMingChen"].Value == null)
                {
                    WJs.alert("请先选择出库设备名称,请在设备名称内键入空格后选择!");
                    //this.dataGView1.setFocus(e.RowIndex, "设备名称");
                }
            }
        }
Exemplo n.º 10
0
        void ac_ServiceLoad(object sender, YtClient.data.events.LoadEvent e)
        {
            WJs.alert(e.Msg.Msg);


            if (!isAdd || !WJs.confirm("是否继续添加物资信息?"))
            {
                WZDM.ReLoadData(TvList.getValue(this.ytComboBox_KindCode).ToString());
                this.Close();
            }
            else
            {
                this.ytComboBox_CountCode.SelectedIndex    = -1;
                this.ytComboBox_ifUse.SelectedIndex        = 0;
                this.ytComboBox_WORKUNITCODE.SelectedIndex = -1;
                this.selTextInpt_PRODUCTPLACE.Value        = null;
                this.selTextInpt_PRODUCTPLACE.Text         = null;
                this.ytComboBox_SingerCode.SelectedIndex   = -1;
                this.ytComboBox_IFJL.SelectedIndex         = -1;
                this.ytComboBox_ZJTYPE.SelectedIndex       = -1;
                this.yTextBox_BM.Clear();
                this.yTextBox_BMJM.Clear();
                this.yTextBox_GuiG.Clear();
                this.yTextBox_ZJRATE.Clear();
                this.yTextBox_XH.Clear();
                this.yTextBox_JC.Clear();
                this.yTextBox_JM.Clear();
                this.yTextBox_Name.Clear();
                this.yTextBox_PY.Clear();
                this.yTextBox_Rec.Clear();
                this.yTextBox_TiaoXM.Clear();
                this.yTextBox_WB.Clear();
                this.yTextBox_EQID.Clear();
            }
        }
Exemplo n.º 11
0
        private void Search_button_Click(object sender, EventArgs e)
        {
            if (this.selTextInpt2.Value == null && this.selTextInpt_KS.Value == null)
            {
                WJs.alert("请选择入库库房或者科室");

                return;
            }
            SqlStr sql = new SqlStr();

            if (!this.selTextInpt2.Text.Equals(""))
            {
                sql.Add("and a.WARECODE=?", this.selTextInpt2.Value);
            }
            if (!this.selTextInpt_KS.Text.Equals(""))
            {
                sql.Add("and a.DEPTID=?", this.selTextInpt_KS.Value);
            }
            if (!this.selTextInpt1.Text.Equals(""))
            {
                sql.Add("and a.IOID=?", this.selTextInpt1.Value);
            }

            this.dataGView1.reLoad(new object[] { His.his.Choscode, this.dateTimePicker1.Value, this.dateTimePicker2.Value }, sql);
            this.TiaoSu.Text       = this.dataGView1.RowCount.ToString() + "笔";
            this.JinEHeJi.Text     = this.dataGView1.Sum("总金额").ToString() + "元";
            this.RuKuJinEHeJi.Text = this.dataGView1.Sum("运杂费金额").ToString() + "元";
            this.label7.Text       = this.dataGView1.Sum("发票金额").ToString() + "元";
        }
Exemplo n.º 12
0
        private void ModifyButton_Click(object sender, EventArgs e)//修改
        {
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            if (dr != null)
            {
                if (dr["状态"].ToInt() == 1 || dr["状态"].ToInt() == 2)
                {
                    PurchasePlan_Add form = new PurchasePlan_Add(dr, 2, this.InWare_selTextInpt.Value, this.InWare_selTextInpt.Text);//编辑
                    form.ShowDialog();
                    //this.InStatus_ytComboBox.SelectedIndex = 0;
                    Search_button_Click(null, null);
                }
                if (dr["状态"].ToInt() == 0)
                {
                    WJs.alert("该该采购计划已删除,不能再修改!");
                }

                if (dr["状态"].ToInt() == 6)
                {
                    WJs.alert("该该采购计划已审核,不能再修改!");
                }
            }
            else
            {
                WJs.alert("请选择要修改的采购计划信息!");
            }
        }
Exemplo n.º 13
0
        private void Submit_toolStripButton_Click(object sender, EventArgs e) //提交
        {
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            if (dr != null)
            {
                if (dr["状态"].ToInt() == 2)
                {
                    ActionLoad ac = new ActionLoad();
                    ac.Action = "LKWZSVR.lkeq.EQPurchase.EQPurchasePlanSvr";
                    ac.Sql    = "PlanDanUpdata_Submit";
                    ac.Add("PLANID", dr["采购计划ID"].ToString());
                    ac.Add("STATUS", 1);
                    ac.ServiceLoad += new YtClient.data.events.LoadEventHandle(ac_ServiceLoad);
                    ac.Post();
                    Search_button_Click(null, null);
                }
                if (dr["状态"].ToInt() == 0)
                {
                    WJs.alert("该计划已删除,不能提交!");
                }
                if (dr["状态"].ToInt() == 1)
                {
                    WJs.alert("该计划已是等待审核,不需提交!");
                }
                if (dr["状态"].ToInt() == 6)
                {
                    WJs.alert("该计划已审核,不需再提交!");
                }
            }
            else
            {
                WJs.alert("请选择要提交的采购计划信息!");
            }
        }
Exemplo n.º 14
0
        private void check_toolStripButton_Click(object sender, EventArgs e) //审核
        {
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            if (dr != null)
            {
                if (dr["状态"].ToInt() == 1)
                {
                    PurchasePlan_Add form = new PurchasePlan_Add(dr, 4, this.InWare_selTextInpt.Value, this.InWare_selTextInpt.Text);//浏览
                    form.Main = this;
                    form.ShowDialog();
                    Search_button_Click(null, null);
                }
                if (dr["状态"].ToInt() == 0)
                {
                    WJs.alert("该计划已删除,不能审核!");
                }
                if (dr["状态"].ToInt() == 2)
                {
                    WJs.alert("该计划已审核被拒,不能再审核!");
                }
                if (dr["状态"].ToInt() == 6)
                {
                    WJs.alert("该计划已审核,不需要再审核!");
                }
            }
            else
            {
                WJs.alert("请选择要审核的采购计划信息!");
            }
        }
Exemplo n.º 15
0
        private void dataGView1_CellEnter(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == SheBeiMingChen.Index)
            {
                if (isCanFKC == "0") //如果不允许负库存   那么在加载的时候是不同的
                {
                    this.dataGView1.addSql("XBInEQDiaoBoEdit11", "设备名称", "", this.ware_selTextInpt.Value + "|" + His.his.Choscode + "|{key}|{key}|{key}|{key}");
                }
                else
                {
                    this.dataGView1.addSql("XBInEQDiaoBoEdit12", "设备名称", "", this.ware_selTextInpt.Value + "|" + His.his.Choscode + "|{key}|{key}|{key}|{key}");
                }
            }

            if (e.ColumnIndex == KuCunLiuShui_Column.Index)
            {
                if (this.dataGView1.Rows[e.RowIndex].Cells["SheBeiMingChen"].Value != null)
                {
                    this.dataGView1.addSql("XBKCLSSelInput", "库存流水号", "", this.ware_selTextInpt.Value + "|" + dataGView1.Rows[e.RowIndex].Cells["EqIdName_Column"].Value + "|" + His.his.Choscode + "|{key}|{key}");
                }
                else
                {
                    WJs.alert("请先选择出库设备名称,请在设备名称内键入空格后选择!");
                }
            }
            if (e.ColumnIndex == shuliang_Column.Index)
            {
                if (this.dataGView1.Rows[e.RowIndex].Cells["SheBeiMingChen"].Value == null)
                {
                    WJs.alert("请先选择出库设备名称,请在设备名称内键入空格后选择!");
                }
            }
        }
Exemplo n.º 16
0
        private int YanZhengZhuXinxi()
        {
            if (ware_selTextInpt.Value == null || ware_selTextInpt.Value == "")
            {
                WJs.alert("请选择申领库房!");
                ware_selTextInpt.Focus();
                return(1);
            }

            if (targetDeptid_selTextInpt.Value == null || targetDeptid_selTextInpt.Value == "")
            {
                WJs.alert("请选择需要申领设备的科室!");
                targetDeptid_selTextInpt.Focus();
                return(1);
            }

            if (outfalg_selTextInpt.Value == null || this.outfalg_selTextInpt.Value == "")
            {
                WJs.alert("请选择出库方式!");
                outfalg_selTextInpt.Focus();
                return(1);
            }

            return(0);
        }
Exemplo n.º 17
0
        private void toolStripButton3_Click(object sender, EventArgs e)//删除
        {
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            if (dr != null)
            {
                if (dr["医疗机构编码"].ToString() != His.his.Choscode)
                {
                    WJs.alert("不能删除不属于本医疗机构的厂商信息!");
                    return;
                }
                else if (WJs.confirmFb("确定要删除选择的厂商信息吗?\n删除后不能恢复!"))
                {
                    rowid = this.dataGView1.CurrentRow.Index;
                    ActionLoad ac = ActionLoad.Conn();
                    ac.Action = "LKWZSVR.lkeq.JiChuDictionary.EQSupplySvr";
                    ac.Sql    = "EQDelChangShangInfo";
                    ac.Add("SUPPLYID", dr["厂商ID"].ToInt());
                    ac.Add("CHOSCODE", His.his.Choscode);
                    ac.Add("IFUSE", dr["是否使用"].ToString());
                    ac.ServiceLoad += new YtClient.data.events.LoadEventHandle(ac_ServiceLoad);
                    ac.Post();
                }
            }
            else
            {
                WJs.alert("请选择要删除的厂商信息!");
            }
        }
Exemplo n.º 18
0
        private void save_button_Click(object sender, EventArgs e)//保存
        {
            if (this.dicdesc_yTextBox.Text.Trim().Length == 0)
            {
                WJs.alert("请输入名称!");
                dicdesc_yTextBox.Focus();
                return;
            }
            if (this.defvalue_ytComboBox.SelectedIndex < 0)
            {
                WJs.alert("请设置是否为默认值!");
                defvalue_ytComboBox.Focus();
                return;
            }

            ActionLoad ac = ActionLoad.Conn();

            ac.Action = "LKWZSVR.lkeq.JiChuDictionary.EQUnit";
            ac.Sql    = "Save";
            ac.Add("DICGRPID", this.dicgrpid_yTextBox.Text);
            ac.Add("DICDESC", this.dicdesc_yTextBox.Text);
            ac.Add("FIXED", 1);
            ac.Add("PYCODE", this.pycode_yTextBox5.Text);
            ac.Add("DEFVALUE", TvList.getValue(this.defvalue_ytComboBox).ToInt());


            if (!isAdd)
            {
                ac.Add("DICID", dr["DICID"].ToString());
                ac.SetKeyValue("DICGRPID,DICID");
            }
            ac.ServiceLoad += new YtClient.data.events.LoadEventHandle(ac_ServiceLoad);
            ac.Post();
        }
Exemplo n.º 19
0
        private void toolStripButton5_Click(object sender, EventArgs e)//修改
        {
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            if (dr != null)
            {
                //string str= LData.Es("EQIfChoscodeIsZero", "LKWZ", new object[] { dr["SUPPLYID"] });
                if (dr["医疗机构编码"].ToString() == His.his.Choscode)

                {
                    rowid = this.dataGView1.CurrentRow.Index;
                    Producters_Add form = new Producters_Add(dr);
                    form.Main = this;
                    form.ShowDialog();
                }
                else
                {
                    WJs.alert("只能修改本医疗机构的厂商信息!");
                }
            }
            else
            {
                WJs.alert("请选择要编辑的厂商信息!");
            }
        }
Exemplo n.º 20
0
        void ac_ServiceLoad(object sender, YtClient.data.events.LoadEvent e)//成功返回函数
        {
            //isOk = true;


            if (this.isAdd)
            {
                if (e.Msg.Msg.Equals("已经存在该设备项目信息!") || e.Msg.Msg.Equals("已经存在该设备项目信息,不能修改成该名称!"))
                {
                    WJs.alert(e.Msg.Msg);
                    //InitForm();
                }
                else if (!WJs.confirm("保存成功,是否继续添加?"))
                {
                    this.Close();
                }
                else
                {
                    InitForm();
                }
            }
            else
            {
                WJs.alert(e.Msg.Msg);
                this.Close();
            }
        }
Exemplo n.º 21
0
        private void toolStripButton7_Click(object sender, EventArgs e)//停用
        {
            DataRow r = this.ytTreeView1.getSelectRow();

            if (r != null)
            {
                if (WJs.confirmFb("是否停用?"))
                {
                    tr = this.ytTreeView1.SelectedNode.Text;
                    string[] str = tr.Split('|');
                    tr = str[0];
                    tr = tr.Trim();
                    ActionLoad ac = ActionLoad.Conn();
                    ac.Action = "LKWZSVR.lkeq.JiChuDictionary.EQKind";
                    ac.Sql    = "StopEQKindInfo";
                    ac.Add("KINDCODE", r["KINDCODE"]);
                    ac.Add("CHOSCODE", His.his.Choscode);
                    ac.ServiceLoad += new YtClient.data.events.LoadEventHandle(ac_ServiceLoad);
                    ac.Post();
                }
            }
            else
            {
                WJs.alert("请选择要停用的设备类别");
            }
        }
Exemplo n.º 22
0
        //启用该条设备入出库管理
        private void enable_toolStrip_Click(object sender, EventArgs e)
        {
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            if (dr != null)
            {
                if (WJs.confirm("您确定要启用选中的设备入出库记录吗?"))
                {
                    if (dr["是否使用"].ToString() == "0")
                    {
                        ActionLoad ac = ActionLoad.Conn();
                        ac.Sql    = "QiYong";
                        ac.Action = "LKWZSVR.lkeq.JiChuDictionary.EQInOutSvr";
                        ac.Add("CHOSCODE", His.his.Choscode.ToString());
                        ac.Add("IOID", dr["入出ID"].ToString());
                        ac.Add("IFUSE", "1");
                        ac.ServiceLoad += new YtClient.data.events.LoadEventHandle(ac_ServiceLoad);
                        ac.Post();
                    }
                    else
                    {
                        WJs.alert("该设备入出库记录已经被启用,无需修改!");
                    }
                }
            }
            else
            {
                WJs.alert("请选择要启用的设备出入库类型记录!");
            }
        }
Exemplo n.º 23
0
        private void QueRen_toolStrip_Click(object sender, EventArgs e)
        {
            if (dataGView1.RowCount <= 0)
            {
                WJs.alert("当前折旧细表内无数据,不能进行月结信息!");
                return;
            }
            //确认的时候先保存折旧记录  然后更新对应的数据
            string     XmlData = this.dataGView1.GetDataToXml();
            ActionLoad ac      = ActionLoad.Conn();

            ac.Action = "LKWZSVR.lkeq.UseingEQ.EQMonthAccountSvr";
            ac.Sql    = "QueRenYueJie";
            ac.Add("XmlDataList", XmlData);
            ac.Add("BEGINDATE", drZ["开始日期"].ToDateTime());
            ac.Add("ENDDATE", drZ["结束日期"].ToDateTime());
            AddZhuBiaoInfo(ac);
            ac.ServiceLoad += new YtClient.data.events.LoadEventHandle(ac_ServiceLoad);
            ac.Post();
            if (isOk)
            {
                WJs.alert("月结成功,即将关闭本窗口!");
                this.Close();
            }
        }
Exemplo n.º 24
0
 private void copy_toolStrip_Click(object sender, EventArgs e)
 {
     if (WJs.confirm("您确定要复制系统提供的出入库数据到本医疗机构吗?"))
     {
         ActionLoad ac = ActionLoad.Conn();
         ac.Sql    = "CopyChoscodeData";
         ac.Action = "LKWZSVR.lkeq.JiChuDictionary.EQInOutSvr";
         ac.Add("IOID", null);
         ac.Add("IONAME", null);
         ac.Add("PYCODE", null);
         ac.Add("WBCODE", null);
         ac.Add("IFUSE", null);
         ac.Add("RECIPECODE", null);
         ac.Add("RECIPELENGTH", null);
         ac.Add("RECIPEYEAR", null);
         ac.Add("RECIPEMONTH", null);
         ac.Add("MEMO", null);
         ac.Add("IOFLAG", null);
         ac.Add("OPFLAG", null);
         ac.Add("IFDEFAULT", null);
         ac.Add("RECDATE", null);
         ac.Add("USERID", His.his.UserId.ToString());
         ac.Add("USERNAME", His.his.UserName);
         ac.Add("CHOSCODE", His.his.Choscode);
         ac.ServiceLoad += new YtClient.data.events.LoadEventHandle(ac_ServiceLoad);
         ac.Post();
     }
 }
Exemplo n.º 25
0
        //从最顶节点开始搜索  而当前节点就是顶级节点下的第一个节点
        void FindNextNode()
        {
            if (CurrentPnode.Nodes.Count > 0)
            {
                CurrentPnode = CurrentPnode.Nodes[0];
            }
            else
            {
                //若当前节点下再无子节点[末节点]
                CurrentPnode = GetUnderNode(CurrentPnode);
                if (CurrentPnode == null)
                {
                    WJs.confirm("搜索完毕,没有发现新的符合项,将从头开始");
                    CurrentPnode = this.ytTreeView1.TopNode;
                    return;
                }
            }
            DataRow row = this.ytTreeView1.GetRow(CurrentPnode);

            if (row[CurrentFindType].ToString().Contains(CurrentFindContent))
            {
                this.ytTreeView1.SelectedNode = CurrentPnode;
            }
            else
            {
                FindNextNode();
            }
        }
Exemplo n.º 26
0
 private void button_Cancel_Click(object sender, EventArgs e)
 {
     if (WJs.confirmFb("是否确定不在请购单中选择而直接退出?"))
     {
         this.Close();
     }
 }
Exemplo n.º 27
0
 private void dataGView1_CellEndEdit(object sender, DataGridViewCellEventArgs e) //表格中的单元格结束编辑时触发事件
 {
     if (this.dataGView1.CurrentCell.ReadOnly == false && this.dataGView1.CurrentRow.Cells["Column12"].Value != null)
     {
         var a     = this.dataGView1.CurrentCell.Value;
         int Count = 0;
         if (a != null)
         {
             if (int.TryParse(a.ToString().Trim(), out Count) && Count >= 0)
             {
                 int Value = Count - Convert.ToInt32(this.dataGView1.CurrentRow.Cells["Column12"].Value);
                 //if (Value != 0)
                 //{
                 this.dataGView1.CurrentRow.Cells["Column9"].Value = Value;
                 //}
                 //else
                 //{
                 //    this.dataGView1.CurrentRow.Cells["Column9"].Value = null;
                 //}
             }
             else
             {
                 WJs.alert("输入的实际数量有误,请输入大于零的整数。");
             }
         }
     }
 }
Exemplo n.º 28
0
        //void ware_selTextInpt_TextChanged(object sender, EventArgs e)
        //{
        //    if (this.ware_selTextInpt.Value != null && this.ware_selTextInpt.Value != "")
        //    {
        //        if (this.ware_selTextInpt.Value.ToString() != preValue)
        //        {
        //            if (preValue != null)
        //            {
        //                if (WJs.confirm("更改出库库房将会删除所有细表信息,确认更改出库库房?"))
        //                {
        //                    this.targetware_selTextInpt.Value = null;
        //                    this.targetware_selTextInpt.Text = null;
        //                    int K = this.dataGView1.Rows.Count;
        //                    for (int i = 0; i < K; i++)
        //                    {
        //                        this.dataGView1.Rows.Remove(this.dataGView1.Rows[0]);
        //                    }
        //                }
        //                else
        //                {
        //                    this.ware_selTextInpt.Value = preValue;
        //                    this.ware_selTextInpt.Text = preText;
        //                    return;
        //                }
        //            }
        //            preText = this.ware_selTextInpt.Text.ToString();
        //            preValue = this.ware_selTextInpt.Value.ToString();
        //        }
        //    }
        //}

        //private void selTextInpt1_Leave(object sender, EventArgs e)
        //{

        //}
        #endregion


        private void Cancel_toolStrip_Click(object sender, EventArgs e)
        {
            if (WJs.confirm("您确定要退出吗?"))
            {
                this.Close();
            }
        }
Exemplo n.º 29
0
        private void ModifyButton_Click(object sender, EventArgs e)
        {
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            if (dr != null)
            {
                if (dr["状态"].ToInt() == 1 || dr["状态"].ToInt() == 2)
                {
                    EQOut_Add form = new EQOut_Add(dr, 2, app);//编辑
                    form.ShowDialog();
                    this.InStatus_ytComboBox.SelectedIndex = 0;
                    Search_button_Click(null, null);
                }
                if (dr["状态"].ToInt() == 0)
                {
                    WJs.alert("该出库信息已作废,不能再修改!");
                }
                if (dr["状态"].ToInt() == 7)
                {
                    WJs.alert("该出库信息已冲销,不能再修改!");
                }
                if (dr["状态"].ToInt() == 6)
                {
                    WJs.alert("该出库信息已审核,不能再修改!");
                }
            }
            else
            {
                WJs.alert("请选择要修改的出库信息!");
            }
        }
Exemplo n.º 30
0
        private void UsetoolStripButton_Click(object sender, EventArgs e)
        {
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            if (dr != null)
            {
                if (dr["是否使用"].ToString() == "0")
                {
                    if (WJs.confirmFb("您确定要启用选择的设备库房吗?"))
                    {
                        ActionLoad ac = ActionLoad.Conn();
                        ac.Action = "LKWZSVR.lkeq.JiChuDictionary.EQWare";
                        ac.Sql    = "Enab";
                        ac.Add("ifuse", "1");
                        ac.Add("choscode", His.his.Choscode.ToString());
                        ac.Add("warecode", dr["库房编码"].ToString());

                        ac.SetKeyValue("warecode,choscode");
                        ac.ServiceLoad += new YtClient.data.events.LoadEventHandle(ac_ServiceLoad);
                        ac.Post();
                        reLoad();
                    }
                }
                else
                {
                    WJs.alert("该设备库房已经启用了");
                }
            }
            else
            {
                WJs.alert("请选择要启用的设备库房信息!");
            }
        }